Light from the sun is emitted in white colour (that is, including all coulours of VIBGYOR)
but during the time when rays of the sun are tangential to the earth surface, the red part of the light goes straight un-scattered due to its long wavelength.
but the blue part of the light scatters due to its short wavelength and reaches earth and we see the sky as blue,
In space there is no atmosphere so the astronauts see the sky as black
find the attachment