Black-background-white-text is a deliberate design register: dramatic, focused, premium. Used in the right places with the right values, it outperforms light themes. Used lazily — pure white paragraphs on pure black — it tires readers in minutes. Here is the practical split, and the styling that keeps it comfortable.
Where it genuinely wins
Posters, heroes, title cards
Short text at display sizes. Halation is irrelevant at 60px, and the drama is the point.
Code editors and terminals
Fragmented reading, syntax colors that pop on dark, long sessions where a bright screen would be the fatigue source.
Video and photo interfaces
Dark chrome keeps attention on the media and avoids a bright frame around dark footage.
OLED wallpapers and always-on displays
True black means pixels switched off — battery savings and zero backlight bleed. Grab a solid from our black background library.
Quote graphics and social cards
High contrast stops the scroll; short copy avoids the reading-fatigue trade-off.
Luxury and entertainment brands
Dark reads as premium and cinematic — but even here, the body copy should follow the rules below.
Where it loses
Articles, documentation, email, terms and conditions — anything a person reads for more than a couple of minutes in a lit room. For those, default to dark-on-light and offer dark mode as a user option. The research on this is consistent: sustained reading favors positive polarity. Full breakdown in white text on black: readability.
The styling that makes it comfortable
- Text #E8E8E8, not #FFFFFFKeeps the look, cuts the glow. At 87% white you lose almost no contrast and gain noticeably crisper edges.
- Background #0E0F12 – #141414 for UITrue #000000 is for OLED wallpapers and video surrounds, not reading surfaces.
- Larger body size16–18px minimum. Light-on-dark reads smaller and thinner than it is; compensate.
- Restrained line length60–70 characters. Long glowing lines are hard to track back to.
- Lighter weights, wider spacingBody text one weight lighter than your light theme, with slightly increased letter- and line-spacing.
- Lift accent colorsSaturated brand colors vibrate on black. Desaturate a step and lighten.
Example CSS
:root[data-theme="dark"] {
--bg: #0E0F12;
--surface: #171921;
--text: #E8E8E8;
--text-muted: rgba(255,255,255,.62);
--link: #8AB4F8;
}
body { background: var(--bg); color: var(--text); font-size: 17px; line-height: 1.65; }
p { max-width: 68ch; }
Testing checklist
Check body text at 4.5:1 or better on every surface, not just the page. View at arm’s length in a lit room, not only in a dark studio. Ask someone who wears glasses to read a paragraph — astigmatism is where light-on-dark fails first (see why white on black can double). And always ship a light alternative.
Test any color pair yourself with our free contrast checker — live WCAG ratios as you pick.
Frequently asked questions
Is a black background with white text accessible?
It can pass every contrast requirement easily — the accessibility risk is comfort over time, not contrast. Softened values and a light-mode option address that.
Does black background save battery?
On OLED/AMOLED screens, yes — black pixels are off. On LCD screens the backlight stays on regardless, so savings are negligible.
What white should I use on black?
#E8E8E8 or rgba(255,255,255,0.87) for body text; pure white is fine for large headings.
