Key takeaways
- Avoid pure black backgrounds and pure white text.
- Soften saturated colors so they do not vibrate.
- Re-check contrast for every pair in dark mode.
Dark mode is not just inverted light mode. A few rules make it more comfortable to read.
Avoid pure black and pure white
A very dark gray background such as #2F4F4F or darker is easier on the eyes than #000000. Off-white text, like a light gray, reduces glare compared with pure white.
Soften saturated colors
Vivid colors vibrate against dark backgrounds. Use lighter, slightly less saturated versions of your brand colors for text and buttons.
Test contrast
Check every text and background pair in the contrast checker and aim for at least 4.5:1 for body text.