Interface craft · Dark UI

Designing accessible dark mode palettes without muddy contrast

Inverting a light theme rarely works. Dark interfaces rely on subtle surface luminance steps, slightly softened off-white text, and calibrated accent lightness so controls stay clear without glowing or vibrating.

Four dark-surface rules that hold up in production

  • Separate background and elevated cards cleanly: Pair a deep base canvas (e.g. #09090B or #0F172A) with a slightly lighter card surface (#18181B or #1E293B) plus a crisp 1px border.
  • Avoid harsh #FFFFFF walls of body text: Soft off-whites like #F4F4F5 or #E2E8F0 still hit WCAG AAA (> 13:1) while reducing halation on OLED displays.
  • Check primary action buttons for both text and surface contrast: Bright cyan or amber buttons require dark ink (#09090B), whereas deep indigo requires crisp white text.
  • Verify muted labels stay above 4.5:1: Secondary captions on dark cards are the #1 source of dark-mode accessibility failures.