When sunlight strikes molecules in our atmosphere, the light is redirected in many directions. The blue light is scattered more than red light causing the sky to be blue. In the space, there is no atmosphere. So, light will not scatter in space, hence it will look dark to an astronaut instead of blue.
Hope this helped