Contrast Checker for Dark and Black Backgrounds

Last reviewed on 2026-10-03

Check whether text and UI colours are readable on a dark or black background. Pick a text colour and a background colour to get the WCAG 2 contrast ratio and an AA / AAA verdict for normal text, large text and interface components, with a live preview.

-
UseAAAAA
Normal text
Large text (24px+, or 18.66px+ bold)
UI components and graphics–

Large heading text

Normal body text at 16px. The quick brown fox jumps over the lazy dog.

Small caption text at about 13.6px.

Try a common dark-theme pair:

WCAG contrast requirements

The ratio is (L1 + 0.05) / (L2 + 0.05), where L1 and L2 are the relative luminances of the lighter and darker colour, so it runs from 1:1 (identical colours) to 21:1 (white on black). The checker uses exact values without rounding, because WCAG says a ratio of 4.49:1 does not meet 4.5:1.

Reference: common colours on dark backgrounds

PreviewPairRatioAA textAAA textLarge / UI (3:1)
Aa#FFFFFF on #00000021:1PassPassPass
Aa#E0E0E0 on #12121214.19:1PassPassPass
Aa#FFD700 on #00000014.97:1PassPassPass
Aa#D4AF37 on #0000009.99:1PassPassPass
Aa#9E9E9E on #1212126.99:1PassFailPass
Aa#BB86FC on #1212127.07:1PassPassPass
Aa#800000 on #0000001.92:1FailFailFail
Aa#0000FF on #0000002.44:1FailFailFail

Dark reds and pure blue are the usual surprises: #800000 maroon and #0000FF on black fail even the 3:1 large-text threshold, so use them only as decorative accents and lighten them for text (for example #FF6B6B or #4FC3F7). More pairings are on colours that work with a black background, and design guidance is in accessible dark backgrounds.

Limits of a contrast ratio

Contrast ratio is necessary but not sufficient. Text over images, gradients or translucent "glass" panels has no single background colour, so test it against the lightest part behind it, or add a solid overlay. Very thin or small fonts can still be hard to read at a passing ratio, and very high contrast (pure white on pure black) causes a glow or halation effect for some readers, which is why many dark themes use off-white on off-black. See shades of black for off-black options and their ratios.