How to design dark mode colors that are easy on the eyes
A good dark theme is more than light mode turned upside down. Colors behave differently against dark backgrounds, so each one needs a second look.
Avoid pure black backgrounds
Dark gray or a tinted near-black gives you room to show depth, because lighter surfaces can sit on top of it. It also softens the harsh edge that white text can have on pure black.
Avoid pure white text
Very bright text on a dark surface can appear to glow. A soft off-white, with secondary text a step dimmer, reads comfortably. Still check that every level meets 4.5:1.
Show depth with lightness
Shadows barely show up on dark backgrounds. Instead, make raised surfaces such as cards and menus slightly lighter than the page behind them.
Adjust your accent colors
A deep blue that works well on white may be too dark on black. Use a lighter, slightly less saturated version. Strongly saturated colors can vibrate on dark backgrounds, so test them on real text.
Check images and shadows
Transparent logos with dark artwork can disappear. Keep a light version for dark mode, and consider lowering the brightness of bright images a little.
Keep reading
- How to choose a brand color palette in five steps
A practical way to pick a main color, supporting colors and neutrals that work on real screens.
- The 60-30-10 color rule, with examples
A simple ratio for balancing colors in layouts, and when you should ignore it.
- Color contrast and WCAG, explained without the jargon
What contrast ratios mean, which numbers to aim for and how to fix colors that fail.