Rayleigh scattering.

Short wavelengths(blue) scatter more than long wavelengths(green, red) which makes the sky appear blue. The sky is in fact black.

In the scattering formula there is a 1/(labda)^4 somewhere, which gives you an idea of the difference.