Dear student,
The blue colour of the sky is due to the phenomenon of scattering, in which a beam of light is directed towards different directions after it interacts with the particles present in the air. When the particles in the atmosphere are struck by the rays of sun, the blue light is scattered the most.
Regards.