← Blog

Dark Mode Color Palettes: A Complete Design Guide

Dark mode is not your light palette inverted. Colors behave differently on dark surfaces: saturated hues vibrate, shadows disappear, and pure white text glows. Here is the playbook that design systems like Material and Apple's HIG converged on.

Rule 1: Don't use pure black

Pure #000000 backgrounds create maximum-contrast edges that strain the eye, and they kill any sense of depth because nothing can be darker than the background. Start at a very dark gray (#121212 is Material's classic) and leave yourself room below it.

Rule 2: Elevation = lightness

In light mode, higher surfaces cast shadows. In dark mode, shadows are invisible — so higher surfaces get lighter instead. Each level of card, dialog and menu steps up a few percent in lightness.

SurfaceTypical valueRole
Background#121212The page itself
Card / level 1#1e1e1eLists, panels
Raised / level 2#2c2c2cMenus, dialogs
Highest#383838Tooltips, snackbars

Rule 3: Desaturate your brand colors

A brand blue that looks confident on white turns radioactive on #121212. Dark-mode variants should be lighter and less saturated — think 200–300 steps on your Tailwind scale instead of 500–600. This is the real reason full shade scales matter.

Rule 4: Soften the text

Pure white on dark gray haloes. Use a slightly transparent white instead: roughly 87% opacity for primary text, 60% for secondary, 38% for disabled. The same trick applies to borders — a 10–15% white border reads cleaner than a solid gray line.

Check contrast both ways

AA still applies in the dark: 4.5:1 for body text against its actual surface, not against the page background. Light-on-dark pairs that pass are often different shades than their dark-on-light cousins — test each theme separately in the contrast checker.

Sources and further reading