Design

Pure #000000 vs #121212 for Dark UI

Contrast ratios, elevation, OLED smear and why Material settled on #121212. When true black is still the right call.

By Black Screen Online Editorial4 min read
Pure #000000 vs #121212 for Dark UIDESIGNPure #000000 vs#121212 for DarkUI

When you design a dark interface, the background colour is the first decision and one of the most argued about. Pure #000000 promises maximum contrast and OLED power savings. #121212, the value Google recommends in Material Design, promises comfort and depth. Both are right in different places. Here are the numbers behind each.

Contrast, measured

Contrast ratios below use the WCAG 2 formula. WCAG asks for at least 4.5:1 for body text.

Text on background#000000#121212
White #FFFFFF21:118.7:1
Off-white #E6E6E616.9:115.1:1
Mid grey #8A8A8A6.0:15.4:1
Dark grey #6666663.7:13.3:1

Both backgrounds give plenty of headroom for body text. The extra contrast of pure black is mostly unneeded and can be uncomfortable: 21:1 white on black is the highest ratio possible and is where halation, a glow around bright letters, is strongest.

Elevation and shadows

Light interfaces show depth with shadows. Dark ones cannot do that on pure black, because a shadow darker than #000000 does not exist. Material’s answer is to make raised surfaces lighter: a card at 1dp elevation gets a 5 percent white overlay, rising to 16 percent at 24dp. That only works if the base is above black. With #121212 as the base, there is room to go both darker for shadows and lighter for elevated cards.

OLED: power and smear

  • Power: #000000 pixels are off; #121212 pixels are lit at a very low level. At high brightness the saving from pure black is real, at typical brightness it is small. See our battery write-up.
  • Smear: switching an OLED pixel from fully off is slower than adjusting one already lit. Scrolling grey content over pure black can leave a purple trail on some panels. A lifted black reduces this.
  • Bezel blending: pure black merges with the phone’s bezel, which looks striking in full-screen media.

You can compare on your own phone by opening #000000 and near-black and scrolling content across each.

When to use pure black

  • Full-screen media: video players, photo viewers, galleries.
  • Always-on displays and lock screens on OLED.
  • Apps where battery life matters more than depth, such as navigation at night.
  • A deliberate high-contrast or AMOLED theme option users switch on themselves.

When to use #121212 or similar

  • Reading-heavy apps and documentation.
  • Interfaces with layered cards, menus and dialogs.
  • Brand colours that need to stay saturated. Saturated accents vibrate against pure black; Material recommends desaturated tones in dark themes.
  • Products used on both LCD and OLED, where #121212 looks consistent.

The third option: tinted near-black

Many polished dark interfaces use a near-black with a slight hue, rather than neutral #121212. A cool tint like obsidian #0B0F14 or a faint violet near #050508 makes the interface feel designed and helps brand accents sit comfortably. Keep the tint subtle; at very low lightness, a hue above about 10 percent saturation starts to look like a colour rather than black.

A quick checklist

  1. Base background: #121212 or a tinted near-black, unless you have a specific reason for #000000.
  2. Primary text: around 87 percent white, roughly #DEDEDE, rather than pure white.
  3. Secondary text: about 60 percent white, checked for 4.5:1.
  4. Elevation through lighter surfaces, not shadows.
  5. Test on a real OLED phone for smear, and on an LCD for washed-out blacks.

Implementing it in CSS

Whatever you choose, define it once and build the rest of the palette relative to it. A minimal set of custom properties for a dark theme might look like this:

  • --bg: #121212 for the base surface, or #000000 for an opt-in AMOLED theme.
  • --surface-1 to --surface-3 as progressively lighter overlays for cards, menus and dialogs.
  • --text: #DEDEDE and --text-muted: #A0A0A0, both checked for 4.5:1 against every surface.
  • --border as a subtle line a few steps lighter than the surface, so separation does not depend on shadows.

Respect user preference with prefers-color-scheme, and if you offer a true black option, expose it as a separate setting rather than replacing the default. Users who choose it know what they are getting; users who did not ask for it may find the extra contrast harsh.

Finally, check images and illustrations. Transparent PNGs with dark edges vanish on black, and pure white images glare on any dark theme. A slight lift or border on media keeps them readable against both #000000 and #121212.

Conclusion

Pure black is for media, always-on displays and opt-in AMOLED themes. #121212, or a tinted near-black, is for everything else: it is easier to read, supports elevation, and smears less. Put both on your own screen with our black and near-black pages and judge for yourself.

Whichever base you choose, document the reasoning next to the token in your design system. Teams revisit this decision every year or so, usually after someone sees smear on a new phone or a complaint about harsh contrast arrives. A one-line note saying why you picked #121212, or why the AMOLED theme exists, saves that debate from starting over each time.

FAQ

It leaves room for both shadows and lighter elevated surfaces, reduces eye strain from extreme contrast, and still saves power on OLED.

No. It passes contrast easily. Some users with astigmatism find it causes more halation, so offering a softer option helps.

Off-white around #DEDEDE for primary text and #A0A0A0 or lighter for secondary text keeps contrast high without glare.

Keep reading

Partner with us

Reach people who care about their screens

Sponsored links, tool placements and newsletter mentions for monitor, display and creator brands. Every placement is clearly labelled and sits outside the fullscreen tool.

One email a month. No spam, unsubscribe any time.