The Sun closely approximates a black body radiator. The effective temperature, defined by the total radiative power per square unit, is about 5,780 K. The color temperature of sunlight above the atmosphere is about 5,900 K.
As the Sun crosses the sky, it may appear to be red, orange, yellow or white depending on its position. The changing color of the sun over the course of the day is mainly a result of scattering of light, and is not due to changes in black body radiation. The blue color of the sky is caused by Rayleigh scattering of the sunlight from the atmosphere, which tends to scatter blue light more than red light.
Daylight has a spectrum similar to that of a black body with a correlated color temperature of 6,500 K (D65 viewing standard) or 5,500 K (daylight-balanced photographic film standard).
For colors based on black body theory, blue occurs at higher temperatures, while red occurs at lower, cooler, temperatures. This is the opposite of the cultural associations attributed to colors, in which "red" is "hot", and "blue" is "cold".
Holy moses… I'm quoting wikipedia. ooh boy.