This was also the origin of the expression "dyed in the grain.