Dark Mode

19.11.2026 · 12 mins read

Dark Mode – Accessibility, Contrast and Implementation

Dark mode, also called dark theme, is a display with light text on a dark background. Users switch it on in the settings of their operating system, browser or app – on computers running Windows and macOS as well as on smartphones with Android and iOS. For website and app owners the question is how to support this feature accessibly.

Whether dark mode is easier on the eyes depends on the individual user. Some people find the lower brightness of the screen a relief, for example with light sensitivity. For others, light text on a dark background is harder to read. The rule is therefore: dark mode should be an option that users choose themselves, and both displays must be designed accessibly.

For digital offerings covered by the European Accessibility Act (EAA), corresponding accessibility requirements apply. The WCAG serve as an important international standard. No obligation to offer dark mode follows from this – but anyone who does offer it must implement contrast and controls cleanly in the dark design too.

D

Dark Mode at a Glance

  • ✓ Definition: Light text on a dark background, switchable in the settings of the operating system, browser or app
  • ✓ Mandatory? No – WCAG does not require dark mode, but contrast and focus must work in every mode
  • ✓ Effect: More comfortable for some users, harder to read for others – giving a choice is important
  • ✓ Implementation: Read the system setting via prefers-color-scheme and add a toggle
  • ✓ Distinction: Not the same as a blue light filter or the operating system's high-contrast mode

Dark Mode, Blue Light Filter and High-Contrast Mode: The Differences

Around dark mode there are several similar-sounding modes that do different things. Confusing them means planning past the needs of users.

  • ✓ Dark mode: A dark design with light text. The colours of the page are deliberately adapted for the dark background.
  • ✓ Blue light filter: Changes the colour temperature of the screen, for example in the evening, without changing the page design. More in the entry on the blue light filter.
  • ✓ High-contrast mode: An operating system setting that simplifies colours strongly and raises contrast, as used with visual impairment.
  • ✓ Forced darkening: Some browsers and extensions darken pages automatically and change colours and images in the process, without the page having intended it.

Turning On Dark Mode: Settings on Android, iOS, Windows and macOS

Most users set dark mode once in the operating system and expect every app and website to follow that setting. For owners this is the key anchor point. Menu labels differ by version and manufacturer; the following paths are typical examples:

  • ✓ Android: In the settings under Display, turn on the "Dark theme" option (called "Dark mode" by some manufacturers).
  • ✓ iOS: In the settings under "Display & Brightness", choose the "Dark" appearance.
  • ✓ Windows: In the settings under "Personalisation" and "Colours", select the "Dark" mode.
  • ✓ macOS: In System Settings under Appearance, choose "Dark"; in older versions under "General".

Who Does Dark Mode Help – and Who Does It Not?

Dark mode is not a cure-all. Whether it is a relief for a person's eyes cannot be said in general – the effect is individual. Freedom of choice is therefore the most important principle.

  • ✓ Can help: With light sensitivity and glare from bright surfaces, and with some visual impairments that cope poorly with a bright display.
  • ✓ Can disturb: Some people, for example with astigmatism, find light text on a dark background less sharp, especially with long texts.
  • ✓ Individual preference: People without impairments also use it depending on environment, time of day or screen brightness.
  • ✓ Consequence: Offer light and dark displays and let users choose freely.

WCAG: Which Criteria Apply in Dark Mode

WCAG has no dedicated criterion for dark mode. The requirements of Perceivable apply to every display, however – the light one and the dark one. Each variant must therefore be checked separately. How the ratio of two colours is calculated is explained in the entry on the contrast ratio.

  • ✓ 1.4.3 Contrast (Minimum), AA: Normal text needs 4.5:1, large text 3:1 – including light grey on dark grey.
  • ✓ 1.4.11 Non-text Contrast, AA: Controls, icons and form-field borders need 3:1 against the background.
  • ✓ 1.4.1 Use of Color, A: Errors, success or links must not be distinguishable by colours alone.
  • ✓ 2.4.7 Focus Visible, AA: The keyboard focus must be visible on dark backgrounds too – more in the entry on the focus indicator.
  • ✓ 1.4.8 Visual Presentation, AAA: Users should be able to choose foreground and background colours – dark mode is one building block for this.

Typical Dark Mode Mistakes

A dark mode does not consist of simply inverting colours. Most problems arise because only the background was adapted and the rest of the page stays in the light design.

  • ✓ Pure white on pure black: The very high contrast can shimmer for some users. Soft greys are usually more comfortable, provided they meet the contrast values.
  • ✓ Too little contrast in greys: Secondary text, placeholders and disabled elements often fall below the minimum.
  • ✓ Logos and icons with fixed dark colours: They disappear on a dark background.
  • ✓ Focus outline dark on dark: Keyboard users lose their orientation.
  • ✓ Error and success colours: Red and green look different on dark backgrounds and may miss the contrast.
  • ✓ Elements stay light: Form fields, scrollbars, embedded content and payment widgets ignore the dark design.

Implementing Dark Mode Accessibly

Technically, an accessible dark mode is quite feasible if it is considered from the start. The core: respect the setting of the user and additionally let them choose.

  • ✓ Read the system setting: With the CSS media query prefers-color-scheme: dark the page detects whether the operating system uses dark mode.
  • ✓ Colours as variables: Light and dark colours can then be maintained in one place and checked individually for contrast.
  • ✓ Set color-scheme: With color-scheme: light dark, form fields and scrollbars adapt automatically.
  • ✓ Offer a toggle: A button with a clear label and a saved choice that takes precedence over the system setting and is keyboard operable.
  • ✓ Do not override the Windows contrast mode: With forced-colors you can detect when users apply forced colours – this setting takes precedence over your own design.

Dark Mode in Online Shops: What Matters

Online shops bring their own pitfalls. Product images and colour swatches look different on a dark background, prices and discount labels must keep their contrast, and payment providers and embedded services often do not follow the design. Users with dark mode in their mail client are affected too, because emails can be recoloured automatically – see the article newsletter accessibility for notes.

SiteCockpit Solution

easyVision, Contrast Checker and easyMonitoring: Checking Dark Mode

easyVision offers a day/night mode in its display options, letting visitors switch between light and dark display. With the Contrast Checker you check each colour combination individually, and easyMonitoring helps you find technically detectable contrast problems. If your website has its own dark mode, you should additionally check the dark display specifically.

Discover easyMonitoring →

Frequently Asked Questions about Dark Mode

Does my website have to offer a dark mode?

No. Neither WCAG nor the EAA requires a dark mode. If you offer one, though, the requirements for contrast, focus and operability must be met in this display too.

Is dark mode better for the eyes?

That cannot be said in general. Some people find it more comfortable, for example with light sensitivity, while others read better in the light display. That is why users should be able to decide for themselves.

How does my website know whether users have set dark mode?

Through the CSS media query prefers-color-scheme. It delivers the setting of the operating system or browser, so the page can start automatically in the matching display.

Is it enough to simply invert the colours of a website?

No. Simply inverting also changes images, logos and colour coding, and contrasts often no longer fit. An accessible dark mode needs its own tested colour values.

Check the Contrast of Your Website

With easyMonitoring you can find technically detectable contrast problems – and get concrete guidance on implementation.

Try for free