Sunlight reaches the Earth's atmosphere and is scattered in all directions by the gases and particles in the air. Blue light is scattered more than the other colours because it has the shortest wavelength. This is why the sky appears blue to an observer from the surface of the Earth. For an astronaut staying in the international space station orbiting the Earth, the colour of the sky will be black because the light reaching it does not scatter.