Dark Mode

A colour scheme that shows light text and icons on a dark background, offered as a setting beside the light version.

14 min read

Reviewed by Ravi SuranaUpdated

Quick answer

~20 sec

Dark mode is a colour scheme for screens that shows light text and icons on a dark background. It is usually offered as a setting beside the light version. People use it for comfort in dim rooms, for relief from bright screens, and sometimes for lower battery use on OLED displays. Each benefit depends on lighting and hardware.

011 min

Why a quick swap does not make a good dark mode

Picture a design team at a note-taking app. Customers write late at night, and support keeps hearing that the white screen is painful in a dark room. The team agrees to ship a dark version. A developer sets every background to black and every text colour to white, and the build is ready the same afternoon.

Then the testers find problems. Links that were clear on a white page are hard to see on black. The soft shadows under the cards are gone, so the cards no longer look raised. Photos with white backgrounds look too bright against the dark page. Some testers also find the pure white text on pure black tiring to read.

Each problem has a cause, and the sections below take them in order. The main lesson is that a dark version is not the light design with its colours reversed. It is a second set of colour decisions, made for a different way of viewing a screen.

white backgroundAablack backgroundAa
Look at what changed and what did not: only the two colours were swapped, and the page layout stayed exactly as it was.

021 min

Where dark mode comes from

The team's first doubt is whether dark mode is a passing fashion. The record says it is not. Microsoft put a dark theme in Windows 10 in 2016. Apple followed in macOS Mojave in 2018. In September 2019, Apple's iOS 13 and Google's Android 10 each gained a dark setting for the whole system. Web developers also got a way to read that setting in 2019, called the prefers-color-scheme media query, which is a style rule that checks whether the person chose light or dark.

Dark screens before light ones

Dark was how screens started, and designers did not choose it. Early cathode-ray tube displays could not light a whole screen without wearing out, so text appeared as green, white or amber letters on black. Light backgrounds came later, with the graphical interfaces of the 1980s. Their designers wanted the screen to look like the paper people already used, and a light background copied it. Dark mode returns to the old look, now as a setting, on screens that can show either.

033 min

What research says about reading in dark mode

Next the testers argue about which version is easier to read, so the team looks for studies. Raluca Budiu of Nielsen Norman Group reviewed the research in 2020. Her group ran no tests of its own, but the review is a clear summary of who found what.

The first finding favours the light version. In a 2013 study, Cosima Piepenbrock and colleagues in Düsseldorf, Germany, tested adults aged 18 to 33 and 60 to 85 with healthy eyes. Each person did a sight test and a proofreading task, shown either as dark text on light or as light text on dark. Light mode, which means dark text on a light background, did better for both age groups, on the sight test and on proofreading. The same research group later found that the gap grows as the text gets smaller. Tiredness ratings did not differ between the two, and the participants did not notice any difference in how readable the text was. How a screen feels is a poor guide to how well people read on it.

The second finding is that the light in the room changes the result. Jonathan Dobres and colleagues at MIT's AgeLab showed people short letter strings and asked whether each one was a word. In simulated daylight, the choice of colours made no significant difference. At simulated night, light mode gave better results than dark mode, and small text was the hardest case. The review points to the pupil as the likely reason. In bright light the pupil narrows, and a narrow pupil gives a sharper image. In dim light it widens and the image blurs more. Researchers call this ease of recognising letters legibility.

The third finding favours dark mode for some readers. In 1985, Gordon Legge and colleagues at the University of Minnesota tested seven people whose eye lenses were cloudy, for example from cataracts. Each read faster with light text on dark. People with central vision loss were not affected. Legge's team believed that light scatters inside a cloudy lens, so a screen that gives off less light causes less blur. The tests used older CRT screens, so the result needs care when applied to modern displays.

The one-hour result on nearsightedness

Dark mode may also matter over longer periods. In 2018, Andrea Aleman, Min Wang and Frank Schaeffel at the University of Tübingen asked seven young adults to read for one hour in each style. They measured the choroid, a layer of blood vessels behind the retina. After one hour of reading dark text on white, the choroid was about 16 micrometres thinner, and after white text on black it was about 10 micrometres thicker. A thinner choroid is linked to myopia, the condition in which distant objects look blurred.

How the authors explain the choroid result

Aleman's team measured how strongly different kinds of text stimulate two groups of retinal cells, called ON pathways and OFF pathways. They report that black text on white paper strongly stimulates the OFF pathways, while white text on black stimulates the ON pathways. Earlier animal studies, they note, linked each pathway to different effects on eye growth. The team suggests that this difference is why the two kinds of text changed the choroid in opposite directions.

What the nearsightedness result does not show

The result is easy to over-read. The team measured the choroid after one hour, not the growth of anyone's eye over years. The authors expect these changes to shape myopia later on, and that is a prediction, not a measurement. The study had seven readers. Until larger studies follow, it is a reason for more research and not a reason to switch a whole product to dark mode.

Reading at a glance in cars

Dark displays are common in cars and on phones at night, because they send less light into the cabin and are thought to be safer. A 2016 study by Jonathan Dobres, Nadine Chahine and Bryan Reimer tested that belief with very short glances at text. Black text on white was recognised significantly more easily than white text on black, under the lighting they used.

042 min

Does dark mode save battery?

Marketing asks the team to say that dark mode saves battery. Whether that is true depends on the screen.

An OLED screen (organic light-emitting diode) makes light in each of its tiny dots, so a dot that shows black uses almost no power. An LCD screen keeps a backlight on behind all its dots, so showing black saves little. On a 2016 Google Pixel, white at full brightness used about six times the power of pure black. Pure black also saves little beyond dark grey. On an AMOLED screen the extra saving is under 1% compared with the dark grey Google uses in its own Android apps.

How much it saves in real apps

In 2021, Charlie Hu and Pranab Dash at Purdue University measured what dark mode saves in six popular Android apps, including Google Maps, YouTube and Calendar, on four phones. At the 30% to 50% brightness that most people use indoors, switching to dark mode saved only 3% to 9% of power on average. At full brightness it saved 39% to 47%. The saving is large outdoors in sunlight and small in a normal room.

Brightness is part of the trade

Dash later found that brightness can matter as much as the colour scheme. On a Pixel 5, the Google News app drew the same power in light mode at 20% brightness as in dark mode at 50%. So a reader who needs a brighter screen in dark mode to see well does not necessarily pay for it in battery.

051 min

Is dark mode worth building?

With mixed evidence and a real cost, the team must decide whether dark mode is worth the work. People give their own reasons for wanting it: working late, sitting in a dim room, having eyes that find bright light painful, or using a phone on a bus without lighting up the faces of the people nearby. The reasons differ, which is why the choice is usually left to the person.

The cost depends on how the app was made. Braze, a marketing platform company, notes that colours taken from the platform's defaults switch automatically. If an app uses its own brand colours, developers must supply a second set for each one, and designers and testers must check the result. The work is shared. Designers choose the colours and contrast, developers make the switch work, and a project manager makes sure accessibility is covered.

Braze also advises starting small. Designers sketch a dark version, engineers estimate the effort, and after release the team checks how many users switch it on and watches reviews and satisfaction scores for a change. A cheap sketch answers the question of cost before anyone commits to the full build.

062 min

How to design a dark mode palette

Back at the app team, the developers find that most problems in the first attempt have known fixes. The table lists them, from the first attempt to a better choice.

ElementFirst attemptBetter choiceReason
Page backgroundPure blackA dark greyMaterial, Google's design system, says its dark grey surfaces keep shadows visible and reduce eye strain for light text.
Body textPure whiteA softer white, tested for contrastWhite on black scores 21:1. Light grey #E0E0E0 on dark grey #121212 scores 14.19:1, far above the 4.5:1 minimum, and it is less harsh.
Accent coloursThe light-mode coloursLighter, less saturated versionsVery saturated colours can look too intense on a dark ground, and their contrast changes.
DepthShadowsLighter surfaces for higher layersShadows are hard to see on dark colours.
Links and focus ringsThe light-mode blueA colour tested again on the dark groundThe same blue can pass on white and fail on black.
Photos and iconsUnchangedDimmed, or supplied in a dark versionA white-background image looks too bright.

The ratios in the table are computed with the WCAG formula. WCAG 2.2 success criterion 1.4.3 requires at least 4.5:1 for normal text and 3:1 for large text, in every theme. Contrast is measured from brightness, not hue, so a colour that passes on white can fail on black. The light theme passing tells nothing about the dark one, so each pair is checked again. That is the contrast work.

Teams also avoid fixed colour values. Android names colours by role, and its textColorPrimary attribute is near-black in the light theme and near-white in the dark theme. The same screen then works in both.

Elevation overlays

On a light page, a shadow tells the eye that a card sits above the page. Material notes that shadows show up poorly on dark backgrounds. Its first answer was to make surfaces lighter as they rise, by laying a see-through tint on top whose strength grows with height. Material has since moved to tonal surface colours, but the rule stays the same: the higher the layer, the lighter it is. The rule keeps the visual hierarchy clear without shadows.

072 min

Building dark mode for the web and for apps

A palette still has to reach the screen. On the web, a page reads the person's choice with the prefers-color-scheme media query. Its value is either light or dark, and light also covers a person who has set no preference. A page can start with light colours and override them for dark, or start dark and override them for light.

The color-scheme tag

The colours a page sets are only part of what a browser draws. Form fields, scroll bars and the browser's own default colours also need to change. The color-scheme property and meta tag tell the browser that the page supports dark, so it can switch those defaults too. The meta tag works before the stylesheet has loaded, so the page background is correct from the first moment it appears.

The default link blue

The browser's classic link blue shows why this matters. On a black page, the classic link blue has a contrast ratio of only 2.23:1. On a white page, the same blue scores 9.4:1, computed with the WCAG formula. It passes the 4.5:1 minimum on white and fails it on black. Thomas Steiner reported this on web.dev and filed bug reports with the Chrome, WebKit and Firefox teams.

Separate themes in Android

Android apps often keep the two themes as two sets of resources. The light theme sits in the default folder and the dark theme in a folder named values-night. A single DayNight theme can also follow the system's night-mode setting.

Force Dark

Android 10 also has Force Dark, which examines each view of a light app and darkens it automatically before it is drawn. An app has to opt in. Google's documentation advises testing the app thoroughly and excluding views that look wrong. Automatic conversion decides colours without knowing what the design means, so the result needs the same checks as the team's black prototype.

Colours fixed in code

Colours written directly into code break a dark theme. Google's documentation lists the usual cases: widgets and custom notification views that assume the background is light, text colours fixed in code, icons with one fixed colour, and launch screens with a white background. Theme attributes let each of these follow the active theme instead.

link blue4.5 minimumwhite page9.4black page2.23
Compare the two bars against the marker: the same link colour passes the minimum on a white page and does not reach it on a black one.

081 min

Letting people choose between light and dark mode

With two themes built, the team must decide who controls the switch. Android's documentation recommends three options in an app: Light, Dark and System default, and it names System default as the recommended starting choice. The reasoning is that people have already chosen a setting for their whole device, and an app that ignores it makes them choose twice.

The designer Stephanie Walter argues that following the system alone is not enough. Some people keep a dark system but cannot read light text on dark pages, for example because of astigmatism. They need a light page even though the rest of their device is dark. Her answer is to offer both modes and let each person pick.

Some operating systems also switch themes on a schedule, at sunset and sunrise, so one person may see both versions in a single day. Together these points lead to one rule: follow the system by default, and give a visible control to override it.

091 min

When dark mode makes reading harder

The override matters because dark mode helps some readers and hurts others. Four groups need particular care.

  • Astigmatism. Astigmatism is an eye shape that blurs focus. In high-contrast displays, some people with astigmatism see a glowing edge around letters, called halation. Off-white on dark grey softens the contrast, which is one more reason for the choices in the palette table.
  • Dyslexia. The Bureau of Internet Accessibility (BOIA) notes that people with dyslexia can find total contrast, such as white on black, hard to read. It adds that many prefer lighter backgrounds with enough contrast, though not all do.
  • Keyboard users. People who move through a page with the keyboard rely on a focus indicator, the outline that shows where they are. A dark background can hide an indicator that was designed for a light one.
  • Small text in dim rooms. The MIT AgeLab result above means that small light text on a dark screen at night is the hardest case to read.

A site that offers only a dark theme gives these readers no alternative. This is also why an accessibility check belongs to the dark theme as well as the light one.

101 min

Dark mode vs. nearby concepts

Three nearby things are often mixed up with dark mode.

ConceptWhat it changesHow it differs from dark mode
High-contrast modeRaises the contrast between text and background, often with a few strong coloursMicrosoft added high-contrast themes to Windows 95, long before dark themes. The aim is clear contrast, not a dark look.
Warm-tone screen filterShifts every colour toward orangeIt changes colour temperature, not which parts are light or dark. Some platforms call dark mode night mode, which adds to the confusion.
Dark patternsNothing visual: they are interface tricks that steer people into choicesThe two ideas share only the word dark.

Dark mode and sleep

Some guides say dark mode helps sleep because it gives off less blue light. The evidence does not settle this. In 2019, Tim Brown and colleagues at the University of Manchester tested mice with lights whose colour changed while their brightness stayed fixed. In mice, blue light of the same brightness changed the body clock less than yellow light did. The team suggested that dim, cooler light in the evening may be a better choice than warm light. The study did not test dark mode, so it does not show that dark mode helps or harms sleep.

?4 questions

Questions people ask

Is pure black better than dark grey for dark mode?

Usually not. On AMOLED screens pure black saves under 1% more power than dark grey, and dark grey keeps shadows and layers visible. Pure black behind white text also gives the harshest contrast.

Does offering dark mode make a site meet accessibility rules?

No. WCAG contrast requirements apply to each theme separately, so the dark theme needs its own checks: 4.5:1 for normal text, 3:1 for large text, and a focus indicator that can be seen.

Can a site just invert its colours with a filter?

That produces the first attempt in the example: links, shadows and photos break. Automatic conversion such as Force Dark on Android needs testing and exclusions, so treat it as a starting point.

Is night mode the same as dark mode?

On many platforms the two names mean the same thing. A warm-tone filter that turns the screen orange is a different feature, because it changes colour temperature, not which parts are light or dark.

§16 sources

Sources

  1. Raluca Budiu, "Dark Mode vs. Light Mode: Which Is Better?", Nielsen Norman Group, 2020, a review of the studies by Piepenbrock, Dobres and Legge:

  2. Andrea Aleman, Min Wang and Frank Schaeffel, "Reading and Myopia: Contrast Polarity Matters", Scientific Reports, 2018:

  3. Jonathan Dobres, Nadine Chahine and Bryan Reimer, "Utilising psychophysical techniques to investigate the effects of age, typeface design, size and display polarity on glance legibility", Ergonomics, 2016:

  4. Purdue University, "Dark mode may not save your phone's battery life as much as you think, but there are a few silver linings", 2021, a report on the study by Charlie Hu and Pranab Dash:

Show all 16 sources
  1. "Dark mode", Wikipedia, for the platform release history and the OLED power figures:

  2. Rachel del Valle, "A Brief History of Dark Mode", AIGA Eye on Design, 2020:

  3. Material Components for Android, "Dark theme":

  4. Android Developers, "Dark theme":

  5. Thomas Steiner, "Improve dark mode default with color-scheme and a meta tag", web.

  6. MDN Web Docs, "prefers-color-scheme":

  7. W3C, "Understanding Success Criterion 1.4.3: Contrast (Minimum)", WCAG 2.2:

  8. Bureau of Internet Accessibility, "Dark Mode Can Improve Text Readability, But Not for Everyone":

  9. Accessibility Checker, "The Designer's Guide to Dark Mode Accessibility", a summary of halation and astigmatism:

  10. Stephanie Walter, "Dark mode and accessibility myth debunked":

  11. Braze, "What's Dark Mode?":

  12. University of Manchester, "Researchers discover when it's good to get the blues", 2019:

Keep reading

More from Design

All of Design
All of Design

Missing a concept?

Tell us what to write next. We’ll email you when it’s live.

Several? Separate them with commas.

Only to tell you when it’s live.

How we use your email: privacy.