Most evenings, before watching late-night comedy or reading emails on his phone, Matt Nicoletti puts on a pair of orange-colored glasses that he bought for $8 off the Internet.

“My girlfriend thinks I look ridiculous in them,” he said. But Mr. Nicoletti, a 30-year-old hospitality consultant in Denver, insists that the glasses, which can block certain wavelengths of light emitted by electronic screens, make it easier to sleep.

Studies have shown that such light, especially from the blue part of the spectrum, inhibits the body’s production of melatonin, a hormone that helps people fall asleep. Options are growing for blocking blue light, though experts caution that few have been adequately tested for effectiveness and the best solution remains avoiding brightly lit electronics at night.

A Swiss study of 13 teenage boys, published in August in The Journal of Adolescent Health, showed that when the boys donned orange-tinted glasses, also known as blue blockers and shown to prevent melatonin suppression, in the evening for a week, they felt “significantly more sleepy” than when they wore clear glasses. The boys looked at their screens, as teenagers tend to do, for at least a few hours on average before going to bed, and were monitored in the lab.

Older adults may be less affected by blue light, experts say, since the yellowing of the lens and other changes in the aging eye filter out increasing amounts of blue light. But blue light remains a problem for most people, and an earlier study of 20 adults ages 18 to 68 found that those who wore amber-tinted glasses for three hours before bed improved their sleep quality considerably relative to a control group that wore yellow-tinted lenses, which blocked only ultraviolet light.

Devices such as smartphones and tablets are often illuminated by light-emitting diodes, or LEDs, that tend to emit more blue light than incandescent products. Televisions with LED backlighting are another source of blue light, though because they are typically viewed from much farther away than small screens like phones, they may have less of an effect, said Debra Skene, a professor of neuroendocrinology at the University of Surrey in England.

LEDs are also increasingly popular as room lights, but “warm white” bulbs, with less blue, tend to be a better choice than “cool white” for nighttime use. The lighting company Philips also makes a bulb, called Hue, that can change the intensity of its component colors via an app, and GE last month announced a reduced-blue LED bulb, meant to be used before bedtime.