The blue of the sky is due to the dependence of Wavelength on the amount of scattering (λ-4): shorter-wavelength light (blue) is scattered more, leaving the direct Sun looking less blue (yellowish) and the direct Sun at sunrise and sunset when the light passes through the most Atmosphere as even less blue (reddish). The scattered light is polarized, so polarized filters can attenuate the scattered blue light of the sky.
The resulting scattered light shows the spectrum of the incoming light, most attenuated at the shorter (bluer) end.
Rayleigh Scattering contributes to Reddening and Extinction. It is also taken into account in studying atmospheres of Extra-Solar Planets and other planets and Moons through Transmission Spectroscopy.