Dark UI: how to make text readable
1. Start with readable text and useful hierarchy
Pure white on black has strong contrast, but comfort varies by person, screen and lighting. A dark blue or grey background can work well too. Choose colours by checking readability, rather than assuming that dark mode is comfortable for everyone.
2. Check contrast, don't guess
Aim for at least 4.5:1 contrast for body text and 3:1 for large text, as the WCAG guidelines recommend. Secondary text — captions and placeholders — is where dark designs most often fail, because grey on dark grey looks subtle in a design file and unreadable in real life.
- Use a contrast checker on every text and background pair.
- Keep a small, fixed set of text colours instead of one-off greys.
- Make links and buttons recognisable without relying on colour alone.
3. Colour, accents and depth
Saturated colours look more intense on dark backgrounds, so tone accents down a little. Shadows barely show on dark, so use slightly lighter surfaces to show what sits above what. Thin borders at low opacity also help separate cards without adding noise.
4. Test it on real screens
View the design on a phone outdoors, on a cheap monitor and in a dim room. Ask someone with weaker eyesight to read a page. Problems that never show on your own screen show up quickly this way.
Low contrast example: 2.58:1
Fails the 4.5:1 minimum for normal text.
Readable example: 13.73:1
Passes the normal-text contrast minimum.
Background: #102044. Text: #52627a and #e8eef8. These ratios apply to these solid colours; transparency or gradients change the result.
W3C’s contrast guidance sets 4.5:1 for normal text and 3:1 for large text. Contrast is one check, not a complete accessibility audit.
See our website and app development service.
5. Questions people ask
Should every site offer a dark mode?
Is pure black ever fine?
Want to talk about your project?
Describe your idea in a few messages — you'll get a clear answer and a fixed quote.
Chat on WhatsApp