My understanding is that their is no universal color coding standard. If you know the manufacturer, looking at their website might help. In my experience, the ends of the bar stock are usually what is color coded.
As to doing a spark test or a quench test, there are literally hundreds of different steels and other than telling you it has carbon content, there is little that you can do to identify the alloy.
Various unrelated non-hobby circumstances have stalled my attempt to do this, but I do hope to get back to it. I have so much of the kit invested, and I got soooo close. I hesitate to even suggest
@clm1899 check out the XRF thread. He should be warned!
BUT - there are a few first indicators to look for..
1. It has enough rust of a type that looks comparable to what is on the vise to the right of the picture. It is not among the chrom-moly air harden-able sorts. So not 4140.
2. Grind on it with something, and check out the old spark test. You already know it is not cast grey iron, or if not, try and drill it with a M3, see if it delivers the carbon powder. You should be able tell if it is cast semi-steel vs mild steel. Semi-steel makes sparks thinner that the big splashy non-hardenable mild steel, but still not quite like true cast iron. Take note of the nature of the sparks in a direct comparison to a lowly piece of old pipe, or angle iron that you already know is the mildest of squishy steel.
3. A chunk like that is unlikely to be the finest tool steel, but you can tell a bit by going ahead and messing with a strip from a little off-cut. Heat it up way too much, and quench. If it's hardenable, you will know. Sand or grind it along an edge, clean up shiny. Heat from one end, and stop and quench when the other end goes straw yellow brown. I know this is very approximate, but then try to scratch with a HS lathe tool. Some folk are pretty good at estimating the oxide thickness, and associating it with a temperature. There may even be a chart somewhere
4. You can try using a circular disc magnet, and attempting to compare the pull-away tug as compared to steels you already know.
My parting thought is that all of these are so unsatisfactory, and knowing what steel you have is of such major importance, it was always what bugged me. I agree totally with
@seasicksteve 's suggestion that you should take a first shot by trying the scrapyard.