It doesnt have a color, it is just brighter than the darkness of space, the atmosphere slows down and reflects light giving the sky a brighter color (usually called sky blue). Higher you get the darker blue the sky gets as the atmosphere is thinner at say 30,000 feet..
The sky has no color , the colors are caused due to diffraction of light In morning when the light is direct the sky looks blue , because blue colors deviated the more ( coz of atmosphere ) , during the dusk and dawn the sky has yellow or orange color that's because the light falls slanted this time and therefore the blue deviates and gets lost while red and yellow colors which deviated less appear in the sky
The blue color of the sky is due to Rayleigh scattering. As light moves through the atmosphere, most of the longer wavelengths pass straight through. Little of the red, orange and yellow light is affected by the air.However, much of the shorter wavelength light is absorbed by the gas molecules. The absorbed blue light is then radiated in different directions. It gets scattered all around the sky. Whichever direction you look, some of this scattered blue light reaches you. Since you see the blue light from everywhere overhead, the sky looks blue.
Yes, the lower wavelength light gets diffracted by the air, but blue light has a long enough wavelength en can get through, the only reason why we see the sun as yellow, is because the light goes directly from the sun to us.