Sunlight looks white but is really all colors mixed; the air's molecules scatter the short blue wavelengths much more strongly than the longer red ones, sending blue light at you from every direction. So you see blue overhead, and at sunset the light travels farther through more scattering and shifts toward orange and red.