The molecules of air and other fine particles in the atmosphere have sizesmaller than the wavelength of the visible light.
These are more effective in scattering light of shorter wavelength at the blue end than the light of a longer wavelength at the red end. Thus, the blue colouris due to the scattering of sunlight through fine particles in the air.