The brightness and blue color of the sky is due to the scattering of sunlight by the molecules of oxygen and nitrogen in the earth's upper atmosphere. If there were no atmosphere the skies would appear black except in the direction of the heavenly bodies, which would be visible by day as well as by night.