One would hope that a person in that position would have a good eye for colour!
Also, the locomotives would have to pass acceptance by a representative of the railway company's Locomotive Superintendent, so any gross deviation from the specified colour would, one supposes, be picked up. I would imagine that with repeat orders in mind, care would be taken not to upset the customer?