The short answer
Sunlight looks white, but it is a mix of all the colours of the rainbow, each with a different wavelength. When sunlight enters the atmosphere, it bumps into gas molecules, mostly nitrogen and oxygen, which are much smaller than the wavelength of light.
Those tiny molecules scatter short wavelengths (blue and violet) far more than long wavelengths (red and orange). So blue light bounces around the sky in all directions and reaches your eyes from everywhere you look. That is why the sky looks blue.
This effect is called Rayleigh scattering, after the British physicist Lord Rayleigh, who described it in the 1870s.
How much more does blue scatter?
Rayleigh scattering gets stronger very quickly as wavelength gets shorter. The amount of scattering is proportional to 1 ÷ wavelength⁴ (one over the wavelength to the power of four).
- Blue light has a wavelength of about 450 nanometres.
- Red light is about 700 nanometres.
So blue light is scattered about (700 ÷ 450)⁴ ≈ 5.9 times more than red light. That big difference is what paints the whole sky blue.
So why is the sky not violet?
Violet has an even shorter wavelength than blue, so it scatters even more. Yet the sky looks blue. Three reasons:
- Sunlight contains less violet than blue to begin with.
- Some violet is absorbed high in the atmosphere.
- Our eyes are less sensitive to violet. The colour-sensing cells in our eyes respond strongly to blue and green and only weakly to violet. Our brain combines the signals into the familiar sky blue.
Why sunsets are red and orange
At sunrise and sunset, the Sun is low, so its light travels through far more atmosphere to reach you, many times more than at midday.
Along that long path, most of the blue light is scattered away to the sides, lighting up the sky for people elsewhere. What is left to reach your eyes directly is mostly orange and red.
Dust, smoke, sea salt and volcanic ash in the air can make sunsets even more vivid, or deep red. Large volcanic eruptions and wildfires have produced striking sunsets far away from where they occurred.
Why clouds are white
Cloud droplets are much larger than air molecules, larger than the wavelength of light. Particles that size scatter all colours roughly equally, a process called Mie scattering. When all colours are scattered together, the result looks white.
Thick clouds look grey or dark underneath because they are so dense that less light makes it through them.
Why the sky is paler near the horizon
When you look at the horizon, you look through much more air than when you look straight up. The light has been scattered many times, which mixes the colours and makes the sky there look paler or whitish. Haze and pollution add to it.
What about the sky on other worlds?
- Space and the Moon: with no atmosphere to scatter light, the sky is black, even in daytime.
- Mars: the thin atmosphere is full of fine reddish dust, which makes the daytime sky look butterscotch or pinkish. Mars sunsets look bluish, because the dust scatters blue light forward, close to the direction of the Sun. NASA rovers have photographed these blue sunsets.
- Titan (Saturn's largest moon): a thick orange haze gives it an orange sky.
Related sky phenomena
- Rainbows form when sunlight is bent and reflected inside raindrops, separating the colours.
- The blue hour, just before sunrise and after sunset, has a deep blue light because of scattering and a layer of ozone absorbing other colours.
- Auroras are caused by charged particles from the Sun hitting the upper atmosphere, a different process entirely. See our northern lights guide.
- A total solar eclipse turns the daytime sky dark enough to see stars. The next one visible across North Africa and the Middle East is on 2 August 2027; see our 2027 eclipse guide.
Key takeaways
- Sunlight contains all colours; air molecules scatter blue light much more than red.
- Blue scatters about six times more than red (Rayleigh scattering).
- The sky is not violet because of the Sun's spectrum and how our eyes work.
- Sunsets are red because the long path through air scatters most blue light away.