The sky is blue because sunlight bounces off tiny gas molecules in the atmosphere, and shorter wavelengths of light (blue and violet) scatter far more efficiently than longer wavelengths (red and orange). This process, called Rayleigh scattering, sends nearly four times more blue light toward your eyes than red light. The result is that blue glow you see in every direction on a clear day.
How Sunlight Scatters in the Atmosphere
Sunlight looks white, but it contains every color of the visible spectrum, from violet (around 400 nanometers) through blue, green, yellow, orange, and red (around 700 nanometers). When this full-spectrum light enters Earth’s atmosphere, it collides with nitrogen and oxygen molecules, which together make up about 99% of the air. These molecules are far smaller than the wavelengths of visible light, typically less than one-tenth the wavelength.
When a photon of light hits one of these tiny molecules, the molecule’s electrons briefly oscillate in response to the light’s electric field, then re-radiate a photon of the same wavelength in a random direction. This is an elastic process: the light doesn’t lose energy or change color, it just changes direction. The critical detail is that shorter wavelengths trigger this scattering far more readily. The intensity of scattering follows a fourth-power relationship with frequency, meaning that violet light (at roughly 400 nm) scatters about 5.5 times more than red light (at roughly 700 nm). Blue light, sitting at around 450 to 490 nm, scatters roughly 4 times more than red.
So as sunlight passes through the atmosphere, blue and violet light gets redirected in all directions, filling the entire sky with those wavelengths. Red, orange, and yellow light mostly passes straight through with less scattering, which is why direct sunlight still appears warm-toned rather than blue.
Why Blue and Not Violet
If violet light scatters even more than blue, you might expect the sky to look violet. Three things work against that. First, the sun emits less violet light than blue light. Solar irradiance measurements show that output at 400 nm (violet) is noticeably lower than at 450 to 480 nm (blue), so there’s simply less violet to scatter in the first place.
Second, some violet light gets absorbed by ozone in the upper atmosphere before it ever reaches the lower sky where you’d see it.
Third, and most importantly, your eyes aren’t very good at detecting violet. Human color vision depends on three types of cone cells. The short-wavelength cones, responsible for perceiving blue and violet, peak in sensitivity at about 440 nm, which is solidly in the blue range rather than deep violet. The other two cone types (peaking at 545 nm and 565 nm) also respond to blue light but contribute very little to violet perception. Your brain interprets the combined signal from all three cone types as blue, not violet.
Why Sunsets Turn Red and Orange
At sunset and sunrise, sunlight travels through a much longer stretch of atmosphere before reaching you. Instead of passing through the air roughly straight overhead, the light cuts across at a low angle, sometimes passing through more than ten times as much atmosphere as it does at noon.
Over that longer path, nearly all the blue and violet light gets scattered away before it arrives. What’s left is the longer-wavelength light: reds, oranges, and yellows. That’s why the sun itself looks red near the horizon, and why clouds and dust lit by that filtered sunlight glow in warm tones. The blue light that was stripped out of your sunset is simultaneously creating a blue sky for someone hundreds of miles to your west.
How Other Planets Compare
Earth’s blue sky isn’t universal. Mars, for example, has a thin atmosphere filled with fine iron-oxide dust. During the day, that rusty dust scatters red and yellow light across the sky, giving Mars its characteristic butterscotch-colored daytime sky. But Martian sunsets are the reverse of ours: they appear blue. The fine dust particles on Mars are just the right size to scatter blue light more efficiently in the forward direction, close to the sun. So as the Martian sun dips toward the horizon, a soft blue halo forms around it, while the rest of the sky stays yellowish-orange.
This contrast highlights that sky color depends on two things: what the atmosphere is made of and how big those particles are. Earth’s atmosphere is dominated by gas molecules much smaller than visible light wavelengths, which favors Rayleigh scattering and its strong preference for short wavelengths. Mars has larger dust particles that follow different scattering rules entirely.
Why Clouds Stay White
Clouds are made of water droplets or ice crystals that are much larger than the wavelengths of visible light. When light hits particles this size, it scatters through a combination of reflection, refraction, and diffraction rather than the wavelength-selective Rayleigh process. All colors scatter roughly equally, so the scattered light stays white. Thin clouds appear bright white because they scatter sunlight in all directions without filtering out specific colors. Thick storm clouds look gray or dark simply because less light makes it through to the bottom.
This same principle explains why milk looks white (fat droplets scatter all colors equally) and why a glass of water with a few drops of milk can appear faintly blue when viewed from the side: the smallest particles in the mixture preferentially scatter shorter wavelengths, mimicking the atmosphere in miniature.

