Sun light has seven colors namely Violet, Indigo, Blue, Green, Yellow, Orange and Red. Violet has low frequency so it cannot travel for long distance. Indigo has more than Violet and increases. Thus Blue reaches our Earth and it is refracted by the atmosphere. So the sky appears blue.