← All articles Design

Dark UI: how to make text readable

By Mostafa Ayed, founder of UNO · Updated October 2026 · 3 min read
Short answerDark interfaces are easy to make pretty and easy to make tiring. Use dark grey instead of pure black, keep body text well below pure white, and check contrast on every text colour you add.

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.

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.

Same background, different text

Low contrast example: 2.58:1

Your next task starts at 14:30.

Fails the 4.5:1 minimum for normal text.

Readable example: 13.73:1

Your next task starts at 14:30.

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?
Not necessarily. It is worth it when people use the product for long periods or in low light, such as dashboards. Otherwise a good light theme is enough.
Is pure black ever fine?
Sometimes — on OLED phones it can save battery. Just avoid putting bright white text directly on it.

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

Related

Let’s talk about your project

Message us on WhatsApp and we will reply personally, usually within a day.

Chat on WhatsApp

Or email us: info@unosoftwares.com