This is something I've wondered about. People keep talking about how it's blue light that keeps you awake, but moonlight is pretty bluish. Why would humans have evolved to have that as the don't sleep wavelength?
Just looked it up. Apparently it's due to the Purkinje Effect, i.e. "The tendency for the peak luminance sensitivity of the human eye to shift toward the blue end of the color spectrum at low illumination levels."