You can't case harden 4140 but you can case color it.
Color cased 4140:
I have seen those colors, and I don't know what creates them. I read that Ruger had to develop that process because the customer base wanted a vintage replica gun to look like a vintage gun. Original case harden colors were a result of introducing carbon to the surface of plain carbon steels, to make the surface harder.Beyond that, I don't know what creates the colors. I understand that manufacturer's paint a coating on top of the case colors, because the things will rub off. Case colors are delicate. From what I read, the early methods used bone, leather, heated everything up till the carbon came out. Wiki has a good article:
https://en.wikipedia.org/wiki/Case-hardening Seems the early processes were too slow, too much labor, and we lost the beautiful colors of the early guns. Trunbull
https://www.turnbullrestoration.com/tag/color-case-hardening/ figured out the old processes and I was told by USFA he did the case hardening on their pistols. At least for a time. The material properties of those old plain carbon steels were improved by case hardening, and it created a durable wear surface. With the modern steels used in modern guns, those pretty colors are decorative. You can harden the surface, if you really need it, without getting those pretty colors, and it is done all the time. I had an automotive gear set in my hands, and it was obvious that some surface treatment had been done, but no pretty colors.
In a number of threads I have used the term "case hardening" when referring to a process that introduces carbon to the surface of steel, with the express purpose of hardening the surface, usually for wear hardness. A number of posters try to correct me, in weird ways, because they are only aware of case hardening in so far as the pretty colors on their guns.
Bluing is easy to scratch. Handling rubs it off, and the Cowboy action types pay to have revolvers that look worn!. Parkerization replaced bluing on military weapons. I have several pre WW1 German military rifles, sold to South America. The bluing is amazing for a military rifle. Parkerization is easy to apply and more durable. The British applied black paint, and you know, black paint works well and is easy to restore. Just get a spray paint can. There are all sorts of expensive finishes. I prefer brushed stainless, not a finish, it is a steel. It is hard to rust, and if you scratch it, just go over the surface with steel wool and buff it down with an abrasive.