Longer wavelengths of light, such as red, can travel further through the atmosphere without being scattered. This is why sunsets are red: as the sunlight travels through a thicker layer of air to reach us when it is lower in the sky a lot of the blue light is lost from scattering, and the remaining light is predominantly red.