Dark Mode Colors: How to Get Them Right in 2026
Last updated: 2026-07-18
Quick Answer
Dark mode colors work best when you start from a very dark grey base instead of pure black, soften white text to a gentle off-white, and desaturate accent colors so they don't vibrate. Show depth with progressively lighter surfaces, keep contrast above the WCAG limits, and test in both a dark room and daylight.
Advertisement
To get dark mode colors right in 2026, start from a very dark grey base rather than pure black, use slightly desaturated colors and a soft off-white for text, layer progressively lighter surfaces to show elevation, and check contrast on every combination. Dark mode isn't a novelty anymore. Users expect it, and a good dark theme cuts eye strain, saves battery on many screens, and just looks sharp. It's still one of the defining color trends of 2026, which we cover in our web design color trends guide. But dark mode isn't as simple as flipping your light theme. Colors behave differently on dark backgrounds, and a palette that shines in light mode can turn muddy or harsh when inverted. Here's how to build one that holds up.
Why do dark mode colors need a different approach?
On a light interface, elements sit on a bright background and darker colors provide the contrast. In dark mode the relationship reverses, and that changes everything. Bright, saturated colors that looked balanced on white can vibrate uncomfortably against a dark background, an effect that tires the eyes fast (WebAIM). Fully saturated colors are especially harsh, so dark themes usually call for slightly desaturated, softened versions of your brand colors.
Text needs care too. Pure white on a very dark background can feel too sharp over large areas, so a softer off-white reads more comfortably. The short version: dark mode is a redesign of your color relationships, not a simple inversion. Treat it as its own theme and it comes out clean.
What are elevation and surface colors in dark mode?
One of the most important ideas in dark UI is elevation. In light interfaces, we show that an element is raised, like a card or a menu, using shadows. Shadows are much harder to see on a dark background, so dark mode uses a different trick: lighter surfaces sit higher. The base background is the darkest layer, and each element above it uses a slightly lighter shade. A card on the background is a touch lighter, a menu above the card is lighter still.
This gentle stepping of surface colors communicates depth and hierarchy without shadows. Google's Material Design guidance popularised this approach, using a scale of surface overlays that get lighter as elements rise (Material Design, m2.material.io). Building a short scale, from your darkest base up through a few progressively lighter greys, gives you a clean system for layering a dark interface.
Should you use pure black for dark mode?
It's tempting to reach for pure black as the darkest background, but it's usually the wrong choice. Pure black against bright content creates very high contrast that can feel harsh, and it can cause a smearing effect when scrolling on some OLED screens. It also leaves you no room to show elevation, since there's nothing darker to step down from and small steps up are hard to see.
A very dark grey works far better as your base. Material Design itself recommends a dark grey rather than true black for the main surface, precisely so you can layer elevation on top (Material Design, m2.material.io). It softens the overall contrast, feels more comfortable to read against, and gives you space to build your surface scale.
How do you handle accent colors and text?
Your accent colors need adjusting for dark mode too. A brand color that popped on white may look dull or overly intense on dark. Often a slightly lighter, slightly less saturated version reads better. For text, use a soft off-white for primary content, a dimmer grey for secondary text, and an even dimmer one for hints and disabled states. That builds a clear hierarchy while keeping everything comfortable.
Whatever you choose, contrast rules still apply. The WCAG 2.1 standard requires a contrast ratio of at least 4.5 to 1 for normal text and 3 to 1 for large text, and that holds in dark mode exactly as it does in light (W3C WCAG, w3.org). So confirm your off-white text still clears 4.5 to 1 against each dark surface. For help checking contrast when the background is dark, see our color contrast and accessibility guide.
Do people actually prefer dark mode?
A lot of people do, which is why it's worth getting right. Surveys report that over 80% of smartphone users now use dark mode, and around 82% say they prefer it to cut glare, especially on OLED screens (forms.app, forms.app). For low-vision users in particular, dark mode can reduce glare and let them read comfortably for longer.
But it's not universal. Nielsen Norman Group found that preferences are more mixed than the headline numbers suggest, splitting roughly into thirds between people who want dark, people who want light, and people who switch depending on context (Nielsen Norman Group, nngroup.com). The takeaway is simple: don't force one mode. Offer both a light and a dark theme and let people choose.
How do you test your dark mode palette?
Test dark mode in the conditions people actually use it. View it in a dark room, since dark themes are often used at night, and confirm nothing is uncomfortably bright. View it in daylight too, and make sure nothing disappears. Check contrast on every text and surface combination, not just the obvious ones. Look at the whole interface together rather than isolated components, because surface steps that seem clear alone can blur when stacked. And test on more than one screen, since dark colors vary a great deal between displays.
A dark theme that holds up across all of these is ready to ship. For more free utilities to support that work, IWantFreeTools.com gathers a range of design and developer tools in one place.
What are the most common dark mode mistakes?
Several slip-ups turn up again and again in dark themes:
- Inverting the light theme directly. This produces harsh, oversaturated colors and washed-out surfaces. Design the dark theme on its own.
- Using pure black as the base. It's harsh, can smear when scrolling, and leaves no room for elevation.
- Keeping brand colors fully saturated. They vibrate against the dark background. Soften them.
- Setting body text to pure white. It feels too intense over large areas. Use a soft off-white.
- Forgetting to recheck contrast. A pairing that passed in light mode doesn't automatically pass in dark.
Treat the dark theme as its own design, test it properly, and these problems disappear.
What else do people ask about dark mode colors?
Why does dark mode need different colors?
Because the relationship between elements and background reverses. Bright, fully saturated colors that looked balanced on white can vibrate harshly against a dark background and tire the eyes. Dark themes usually need slightly desaturated, softened colors, and text often reads better as a soft off-white than pure white. Dark mode is a redesign of your color relationships, not a simple inversion.
What are surface and elevation colors in dark mode?
Elevation shows which elements sit higher in the interface. In light mode this is done with shadows, but shadows are hard to see on dark backgrounds, so dark mode uses lighter surfaces for higher elements. The base background is darkest, a card on it is slightly lighter, and a menu above the card is lighter still. A short scale of surface greys creates depth without shadows.
Should I use pure black for dark mode?
Usually not. Pure black against bright content creates very harsh contrast, can cause smearing when scrolling on some screens, and leaves no room to show elevation. A very dark grey works better as the base. It softens the contrast, is more comfortable to read against, and gives you space to build a scale of progressively lighter surfaces on top.
Do people actually prefer dark mode?
Many do, but not everyone. Surveys report that over 80 percent of smartphone users use dark mode, often to cut glare on OLED screens. But other research finds preferences split roughly into thirds between dark, light, and a mix. The safe move is to offer both a light and a dark theme rather than forcing one.
How do I test a dark mode palette?
Test it in the conditions people use it. View it in a dark room to confirm nothing is uncomfortably bright, and in daylight to confirm nothing disappears. Check contrast on every text and surface combination, look at the whole interface together rather than isolated components, and test on more than one screen since dark colors vary a lot between displays.
Sources: Google Material Design, "Dark theme" (m2.material.io). W3C, WCAG 2.1 Contrast Minimum (w3.org). forms.app, "Dark mode statistics" (forms.app). Nielsen Norman Group, "Dark Mode: How Users Think About It" (nngroup.com).