According to Wikipedia, melatonin is a hormone that is produced by the pineal gland in animals and regulates sleep and wakefulness. I personally find the following excerpt regarding blue light quite interesting and relevant to our modern lifestyles:
Blue light, principally around 460 to 480 nm, suppresses melatonin, proportional to the light intensity and length of exposure. Until recent history, humans in temperate climates were exposed to few hours of (blue) daylight in the winter; their fires gave predominantly yellow light. The incandescent light bulb widely used in the 20th century produced relatively little blue light. Light containing only wavelengths greater than 530 nm does not suppress melatonin in bright-light conditions. Wearing glasses that block blue light in the hours before bedtime may decrease melatonin loss. Use of blue-blocking goggles the last hours before bedtime has also been advised for people who need to adjust to an earlier bedtime, as melatonin promotes sleepiness.