How to Get Dark Mode and Brand Color Right
Adapting a brand's colors, logo and imagery for dark interfaces, so the brand stays recognizable and readable when devices and apps switch to a dark theme.
On this page
Where most projects go wrong
The usual mistakes:
- Pure black backgrounds with fully saturated brand colors
- Logos with dark elements that vanish in dark mode
- Inverting colors automatically without review
- Transparent PNGs with dark edges
What good looks like instead
- Define dark-mode variants of each brand color in the guidelines
- Check contrast for every text and background pairing in both themes
- Provide a reversed logo for dark backgrounds
- Adjust images and illustrations that disappear on dark surfaces
- Test on real devices with dark mode enabled
Why it matters
Brand colors chosen on white often fail contrast or look harsh on dark backgrounds, and dark mode is a system setting many people use all the time.
The specs that matter
| Measure | Figure |
|---|---|
| prefers-color-scheme | a CSS media query reporting whether the user chose a light or dark theme |
| Contrast in dark mode | the same WCAG ratios apply, 4.5:1 for normal text |
| Material Design dark theme | recommends dark gray surfaces, using #121212 as a baseline |
| Saturated colors | Material recommends desaturated variants on dark surfaces |
| color-scheme property | tells the browser to style form controls and scrollbars for the theme |
Knowing when to hand it over
Tip: Bring in help when adding dark mode to an app or website, or when brand colors fail contrast in one of the themes.
Where this comes from
- MDN Web Docs — prefers-color-scheme
- Material Design — Dark theme
- W3C Web Accessibility Initiative — Understanding SC 1.4.3 Contrast (Minimum)
The figures and practices above come from the sources listed.
Working on something like this?
We take on Brand & Identity Design work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.
Where to go next
Spotted something wrong? Report an error on this page. We correct on the page and say what changed.