The scattering of light depends on the size of the dust particles and the wavelength of the light. The amount of scattering is inversely proportional to the fourth power of wavelength.
Since, violet and blue lights get scattered more than lights of all other colours by the atmosphere the sky appears blue.