The phenomenon of scattering of light helps to explain the blue color of sky
Scattering of light takes place when size of the scattering object (such as air molecules) is very very small as compared to wavelength of light
According to Rayleigh's law of scattering, the amount of scattering is inversely proportional to 4.
Thus when light from sun travels through earth's atmosphere, the different wavelengths get scattered from their path through different amounts obeying Rayleigh's law of scattering.
Since wavelength of blue color is approximately half the wavelength of red color, the scattering of blue light is about 24 times more than red light.
Due to this blue color predominates and the sky appears blue.