<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: LukaszJedrasiak</title>
    <description>The latest articles on DEV Community by LukaszJedrasiak (@lukaszjedrasiak).</description>
    <link>https://dev.to/lukaszjedrasiak</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F995285%2Fd8ff7c51-ca73-467c-9861-29e3fc64e2cd.png</url>
      <title>DEV Community: LukaszJedrasiak</title>
      <link>https://dev.to/lukaszjedrasiak</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lukaszjedrasiak"/>
    <language>en</language>
    <item>
      <title>the eco-friendly dark mode is a bullsh*t</title>
      <dc:creator>LukaszJedrasiak</dc:creator>
      <pubDate>Sat, 25 Feb 2023 18:48:01 +0000</pubDate>
      <link>https://dev.to/lukaszjedrasiak/the-eco-friendly-dark-mode-is-a-bullsht-18bp</link>
      <guid>https://dev.to/lukaszjedrasiak/the-eco-friendly-dark-mode-is-a-bullsht-18bp</guid>
      <description>&lt;p&gt;&lt;strong&gt;You have likely come across the claim that dark user interfaces (AKA dark modes) are eco-friendly because they use less energy. Unfortunately, this is not true.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I am an enormous advocate of dark modes when it comes to design. I prefer all my websites and applications to run in their dark colour schemes. In the spirit of "trust no one Mr Mulder", I decided to test whether dark modes help reduce energy consumption.&lt;/p&gt;

&lt;p&gt;I prepared a simple webpage displaying the same content in two modes, bought an energy meter and connected it to the monitor and then conducted measurements. The results are presented below.&lt;/p&gt;




&lt;p&gt;UPDATE 2023-02-26. Several people pointed out that I only performed measurements on LCD monitors and did not consider OLED monitors. Indeed - in the latter's case, we will notice a difference in electricity consumption. However, in my defence, it will take some time before OLED displays replace LCDs on the market (if ever, considering their prices).&lt;/p&gt;

&lt;p&gt;More on this topic in the article: &lt;a href="https://dodonut.com/blog/does-dark-mode-save-battery/" rel="noopener noreferrer"&gt;https://dodonut.com/blog/does-dark-mode-save-battery/&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;My experiment confirms that switching between dark mode and light mode on a website has a marginal effect on the energy consumption of an LCD monitor.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;If the user has manually set the brightness and contrast levels on their monitor, &lt;strong&gt;the energy consumption difference between dark and light modes is only 0.1 Wh&lt;/strong&gt;. Note that the unit used is 0.1 watts per hour, not the commonly used kilowatts per hour – very little.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The situation looks better if the monitor has a feature of automatically adjusting its parameters to the displayed colours (e.g. advanced contrast ratio or dynamic contrast ratio). The monitor with such a feature automatically changes its parameters when switching between dark and light modes. The difference in energy consumption came to about 30%.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;mode&lt;/th&gt;
&lt;th&gt;energy consumption (Wh)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;light mode&lt;/td&gt;
&lt;td&gt;15.8&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;dark mode&lt;/td&gt;
&lt;td&gt;11.2&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Much more significant energy savings can be achieved by the user manually reducing the brightness and contrast of their monitor. Below are the measurements taken on my equipment:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;brightness&lt;/th&gt;
&lt;th&gt;energy consumption (Wh)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;100&lt;/td&gt;
&lt;td&gt;15.6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;75&lt;/td&gt;
&lt;td&gt;13.4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;50&lt;/td&gt;
&lt;td&gt;11.3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;25&lt;/td&gt;
&lt;td&gt;9.1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;7.1&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Let's think if the generated savings are significant enough to bother with. Working on an almost wholly dimmed monitor can be uncomfortable on a sunny day, so let's take a less extreme scenario and reduce the screen brightness to 50%.&lt;/p&gt;

&lt;p&gt;The difference in energy consumption between brightness 100% and 50% is approximately 4 Wh. In Poland, we work an average of 168 hours per month and 11 months per year, which gives a saving of about 7 kWh. 7 kWh is equivalent to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;about 6 PLN / 1.25 EUR (according to prices for households at the beginning of 2023),&lt;/li&gt;
&lt;li&gt;about 5 kg of CO2 emitted into the atmosphere (unfortunately, the emission index of the Polish power industry is three times higher than the European average),&lt;/li&gt;
&lt;li&gt;the amount of CO2 emitted into the atmosphere that ONE tree can absorb in a year.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To additionally show the small scale of potential savings:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the average annual electricity consumption of a household in Poland is 1500-2000 kWh (I can confirm this based on my bills),&lt;/li&gt;
&lt;li&gt;the laptop to which the tested monitor was connected consumed about 24 Wh simultaneously, and the standing next to lamp 10 Wh.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Since the potential savings are so small, should designers and front-end web developers bother with implementing dark mode in their projects? Yes, but mainly because of the positive user experience. As I mentioned, I like working on dark interfaces and get irritated if the sites I browse don't have them. Mainly if they are sites intended for engineers or programmers.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;However, we should not do green-washing and proclaim that dark background is eco-friendly. It is not. And if we want our projects to generate a smaller carbon footprint, we should focus on other accents in our work – more on this in my following articles.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  -- tools I used for the experiment --
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;iiyama ProLite XU2294HSU-B1 monitor.&lt;/li&gt;
&lt;li&gt;ASUS MB16AH monitor (BTW - this small monitor is even better because, depending on the settings, it consumes only 4-6 Wh!!!).&lt;/li&gt;
&lt;li&gt;The website I displayed in full-screen mode during measurements: &lt;a href="https://lukaszjedrasiak.github.io/playground--hugo/lorem-ipsum/" rel="noopener noreferrer"&gt;https://lukaszjedrasiak.github.io/playground--hugo/lorem-ipsum/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Cheap no-name electricity consumption meter. It may need to be better calibrated, and the actual power consumption differs from the displayed, but this does not affect the experiment results. What I tested in measurements is the DIFFERENCE in power consumption between different modes, not its absolute value.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgsp1ivgd3orztvv739re.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgsp1ivgd3orztvv739re.jpg" title="amateur power consumption measuring station" alt="amateur power consumption measuring station" width="800" height="418"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;amateur power consumption measuring station&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;Follow me on LinkedIn: &lt;a href="https://www.linkedin.com/in/lukaszjedrasiak/" rel="noopener noreferrer"&gt;www.linkedin.com/in/lukaszjedrasiak&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
