Keith Butterfield, Yacht and Marine Surveyor. Costa del Sol, Spain.
Ships always have red on the port (left) and green on the starboard (right) despite that fact that the red light travels less distance than green due to having a longer wavelength. This is not a random aberration — it is a safety system based on visibility.
Green’s shorter wavelength only travels further in good visibility. In practical navigation, visibility conditions are often far from ideal. The red wavelength being the longer wavelength, makes it more visible in fog and low-light conditions; it travels the furthest of the two colours. Historically, sailors used red lanterns for port-side identification to prevent collisions.
Green is brighter and more distinguishable at night only in good conditions, Only in good conditions can ships identify the starboard side at a greater distance.
The Purpose: is Collision Prevention. Red has right of way. The British Royal Navy first standardised red and green lights in 1836, later becoming an international regulation at sea.