The blue color of the sky is caused by Rayleigh scattering of sunlight by atmospheric particles. Without the sun, there would be no light source to scatter, making the sky appear black (dark) as in space. The other colors mentioned require sunlight to be visible.