The blue colour of the sky is due to the scattering of light by small particles of the atmosphere (air molecules). When white light (from the sun) enters the earth's atmosphere, it gets scattered away due to the atmospheric particles. Since blue colour has the minimum wavelength, so blue colour scatters the most and thus the sky appears blue.