
In the visible region and during normal daylight it has been understood for about 100 years that molecular scattering (Rayleigh scattering) is responsible for the blue colour of the sky and (by subtraction of blue from the direct beam) for the red-orange colour of our sun at dawn and at dusk. The scattering of light by particles much smaller than the wavelength under consideration follows a law that states that the scattering increases as the fourth power of the frequency. This implies that blue light is scattered approximately ten times more strongly than red light hence the sun-lit sky above our head looks blue. A question that took much longer to understand, and which I only appreciated recently from reading Why the Sky Is Blue: Discovering the Color of Life (see my earlier post) is why the sky at twilight is still blue and not a blue-green colour which is what pure Rayleigh scatter theory would predict. The answer, surprisingly, is due to ozone in the upper atmosphere. At twilight, after our sun has set, the sun’s rays illuminate preferentially the upper atmosphere. Ozone (a tri-atomic oxygen molecule) absorbs light in the green-yellow-orange-red region of the spectrum (see figure above) and this causes the twilight sky to appear blue. The graph illustrates the absorption spectrum, green light starts at about 500 nm and red light ends at around 750 nm, though for most of us it has to be very bright to be visible at wavelengths longer than 700 nm.
Figure taken from this page http://www.patarnott.com/atms749/notes2006.htm and is copyright. I’m not sure whom to credit with the copyright, but probably either Dr W. Patrick Arnott or The University of Nevada, Reno