Answer explained
Why is railway signal light red in colour?
Red light has a longer wavelength than the other visible colours. Atmospheric scattering by small particles is much weaker for longer wavelengths.
Therefore red light is scattered less and can be seen clearly from a greater distance. This is why red is used for a railway danger or stop signal. It does not mean that every railway signal aspect is red; other colours convey other instructions.