This was taken at dusk using tungsten film which accounts for the blue of everything except the headlight. Available light.
The headlight was dimmed or it would be blown out given the exposure needed for the rest of the locomotive.