Fix Your Sleep With Low Blue Light!




I struggled for decades with an erratic sleeping schedule. I thought that my irregular ‘body clock’ was dooming me to a life of falling to sleep at 2-3am, waking up 5-6 hours later, feeling numb and defeated before the day even begun. Even on weekends, sleeping in until 1-2pm, I rarely ever felt like I was getting ‘sound sleep’.

About a year ago, my friend introduced me to the concept of ‘low blue light’, which is based on the connection between blue light and the sleep-regulating hormone melatonin. The core idea is that exposure to sky blue part of the light spectrum suppresses the production of melatonin, which then interrupts the body’s cycle of tired->sleep->alert. Constant, night-time exposure to the sky blue part of the light spectrum (eg. from a computer screen or from most ordinary, white lights) tells the body it is constantly daytime outside.

So, I experimented with my friends advice and took a few simple steps to limit my nighttime exposure to blue light, and the results have made me feel like a ‘sane’ sleep again. After a while of using the bully pulpit to preach the low blue light gospel, I wanted to have numerical data to show skeptical, analytical people. Without data I sounded like the ICP talking about magnets.

Like any decent experiment write-up, I will first detail the 3 small modifications in my life I made to reduce blue light exposure at night, and then present the results!

More info:

Step 1: Materials

For the sake of completeness, here are the 'materials' I used for this experiment.

  • -- Orange Glasses, to block blue light
  • -- f.lux computer program, to make computer screens less sleep-destructive.
  • -- Orange Lightbulbs, to not produce blue light in the first place!
  • -- Gmail, for measuring first sent email time.
  • -- Plotly, to generate the graphs.

Step 2: Install F.lux or Other Program to Simulate Sunset/sunrise

f.lux is a program that simulates sunset/sunrise by changing how colors display on your monitor. You tell f.lux your time-zone, and the program takes care of the rest. As the f.lux website says: “During the day, computer screens look good—they're designed to look like the sun. But, at 9PM, 10PM, or 3AM, you probably shouldn't be looking at the sun.”

That seems right to me. My first ‘ah-ha’ moment with experimenting with low blue light came the first night after I installed f.lux. I switched it to nighttime mode (which is orange-ish like a fire or the setting sun), and then, an hour later, switched it briefly back to ‘daytime’. It was agony.

More info:

Step 3: Wear Orange Glasses at Night!

I still needed some way to filter out the blue spectrum from the ordinary white lights in my house (and everywhere else). As a solution, I bought a pair of these orange goggle-like things to wear at night before I sleep. I bought this type because they fit over my prescription glasses, but there are many other styles.

You may be asking yourself, “But, Nathan, do you actually wear those hideous goggle-things if you go out to get a drink? Or for a late-night dinner?”. The answer is No... but I wish I had the stones too. Still, for the times when I do spend the majority of the night at home, they work very well.

Glasses those pictured above can be found, cheaply, on Amazon, or expensively at a number of other sites.

Step 4: Install Some Orange Lightbulbs

While not entirely necessary, I wanted to change some of my ordinary white lightbulbs to hipster-orange low-blue-lightbulbs. Wearing the orange glasses for hours some nights is annoying. So I swapped the lightbulbs in my bedroom (my girlfriend vetoed any further low blue light room annexations).

Step 5: Data Collection Methods

There you have it: 3 (somewhat) simple steps to sleeping sanity. But what about the data?!
First, let me explain. Because I have not recorded my exact time of getting out-of-bed each and every day (my OCD finds its bliss in other ways), I have no way to directly measure the dependent variable of this experiment.

To explain my workaround, requires a bit of backstory. Over the past 6 years, I have run my own successful business in web analytics/SEO. I spend most of the work day emailing clients…accumulating tons of email. Therefore, I decided that the time of my first email sent each day would be a suitable proxy for how earlier I had gotten out of bed that particular day. (Technical note: ‘6am’ was the cut-off time I used as the beginning of each day, to prevent data contamination with late-night computer bingeing).

With that, in mind, I went to work gathering the data from my gmail archive.

Step 6: Results

After almost a year had passed, I graphed the data to see if there had been significant effect on my sleep.

The first shows a scatterplot of the time of the first email I sent each day. I thought it would be easier to see the trend by smoothing the data, so I put in a 30-day moving average line as well. Notice how the 30-day MA is consistently below 10AM after going on the LBL regimen.

The second graph shows the data as a histogram of first email times, before and after low blue light. You can see that both have a roughly l normal distribution -- but with means almost 2 hours apart!

If you want to interact with the graphs on plotly itself, here are the links:

Step 7: Errata


This instructable is a replication of study my friend Brian Toomey did, along with Seth Roberts. He is currently in the process of writing up his own report on his findings, which I will link to here when finished.


If you are interested in a great read (that I found funny in the same way conspiracy videos are funny), I recommend the following book:

I would love to have more people replicate this experiment in a way that would work for them. Obviously, there are some pretty serious flaws that make this experiment less that rigorous for publication, but that wasn't my goal. My goal was to show how a little creativity can lead to interesting personal science results.

Data Visualization Contest

First Prize in the
Data Visualization Contest



    • Stone Concrete and Cement Contest

      Stone Concrete and Cement Contest
    • Beauty Tips Contest

      Beauty Tips Contest
    • Barbecue Challenge

      Barbecue Challenge

    9 Discussions

    this is great thx for sharing. I also installed an app on my tablet (twilight) that dims & reds the screen according to sundown/sunup & i believe it helps.


    4 years ago on Introduction

    Thanks for all the helpful info - the link between my exposure to screens and disturbed sleep has been niggling at me for some time. When I am working on my iPad, in bed, into the early hours, my sleep is really awful and my eyes feel weird. It can't be good - must change some habits and follow your remedies. Thanks.

    Your ICP comment about magnets made beer come out of my nose. Also, this is awesome, thanks for the info. :D


    5 years ago

    you can also buy Gunnar eyewear. they are specifically designed for blocking blue light. tons of pro gamers wear them. they come in prescription pairs as well


    5 years ago

    I have thought about this theory for a while and might actually try it now for two reasons: 1- logical data 2- your ICP joke about magnets!!!! Btw I voted for you also!


    5 years ago on Introduction

    You can wear orange (sun)glasses and be as cool as John lennon ... :)


    5 years ago on Introduction

    I've been taking steps to limit my blue light exposure too. f.lux does a good job, at least on my smaller screens. Now to figure out how to get at that on the TV..


    5 years ago on Introduction

    I installed Flux, but it does not allow to set my location. I live near 35°SOUTH, 58°W. Anyway, in autumn and spring the sunset and sunrise are similar in both hemispheres. I will see how it works this night.

    I put a request at the Flux site, to allow change location by coordinates, not only by zipcode.


    5 years ago

    Neat study! Another cool chart you could make is your work efficiency. If you really do mostly email, it wouldn't be too hard to make a chart of emails/hr or something.