UINice
ProDesign systemsPro
Site types
Big Tech
Free picks
Hot 100
Design tools
MCP
English
Submit
Sign in
Design tools
All tools
Screenshots & mockups
Social & marketing images
Color
Image color picker
Color palette generator
Palette from image
Tailwind color shades
shadcn theme generator
Palette visualizer
Color contrast checker
Dark mode palette
Design tokens generator
Gradient from image
Color wheel generator
Color blindness simulator
OKLCH color picker
Color converter
Color mixer
Color name finder
CSS generators
SVG & backgrounds
Typography
Icons & favicons
Image editing
Format conversion

Dark mode palette

Light mode

Layered dark surfaces

Cards lift gently above the base canvas while the brand accent stays crisp and accessible without harsh neon glare.

Primary action
Derived dark mode · 16.48:1 / 4.57:1

Layered dark surfaces

Cards lift gently above the base canvas while the brand accent stays crisp and accessible without harsh neon glare.

Primary action
--bg#150f10
--surface#271c1e
--elevated#3b2b2e
--border#593b41
--fg#f2eeef
--muted#b9a2a7
--primary#db5c76
--primary-fg#0b0d12
:root {
  --bg: #f1f1f1;
  --fg: #191919;
  --primary: #e0244a;
  --muted: #656565;
}

[data-theme="dark"], .dark {
  --bg: #150f10;
  --surface: #271c1e;
  --elevated: #3b2b2e;
  --border: #593b41;
  --fg: #f2eeef;
  --muted: #b9a2a7;
  --primary: #db5c76;
  --primary-fg: #0b0d12;
}
Light theme seed colors
Dark surface mood
Design system presets
Coral FizzPRO→
Output format

Why inverting light colors fails in real dark mode interfaces

A common shortcut when adding dark theme support is inverting lightness values or flipping white backgrounds to pure black. The result almost always feels harsh, flat, and tiring to read. Saturated brand blues and reds vibrate painfully against pitch-black surfaces, drop shadows vanish into dark backgrounds, and nested cards lose every visual cue that separates modals from base panels.

This free dark mode palette generator derives a complete dark color scheme from your light theme seed colors using optical elevation rules. Instead of raw inversion, it builds three distinct surface tiers—base canvas, card surface, and elevated popover—pairs them with subtle hairline borders, softens overly intense primary saturation, and automatically checks the resulting foreground and primary contrast against WCAG AA standards.

Every calculation happens locally in your browser with side-by-side light and dark UI previews, so you can tune tinted slate, neutral charcoal, or true OLED dark modes and export production CSS, Tailwind v4, or JSON tokens in one click.

How to derive a balanced dark mode color scheme

  1. Choose a UINice design system preset or pick your own light-mode background, foreground, primary, and muted hex colors.
  2. Select a dark surface mood: Brand Tinted blends a whisper of your brand hue into dark grays for cohesion, Neutral Gray keeps surfaces crisp and universal, and True OLED anchors the base canvas near pure black for high-contrast mobile displays.
  3. Adjust the Elevation Contrast Step slider to control how distinctly cards and popovers rise above the canvas, and tune Primary Desaturation to prevent saturated brand accents from glowing harshly on dark backgrounds.
  4. Inspect the side-by-side light and dark cards plus the eight generated swatches, then pick CSS, Tailwind, or JSON and copy the complete dark theme token block.

Key principles behind comfortable dark theme surfaces

Great dark themes rely on controlled lightness hierarchy rather than dramatic contrast spikes. When pure white text (#ffffff) sits on pure black (#000000), halation causes bright letters to bloom slightly for many readers, especially those with astigmatism. Stepping the canvas slightly upward to deep charcoal and softening body text to an off-white around 93% to 95% lightness keeps readability above 12:1 while dramatically reducing eye strain.

Four practical rules guide the token derivation in this tool:

  • Lighter means closer: Because dark shadows disappear on dark surfaces, elevated cards, dropdowns, and dialogs step upward in lightness rather than relying solely on drop shadows.
  • Subtle hue tinting: Adding 6% to 16% saturation from your primary brand hue into dark slate neutrals unifies cards and accents so the dark theme feels custom-built rather than generic.
  • Desaturated and lifted accents: Deep brand colors that read cleanly on white often sink into dark cards; lifting their lightness to the 60%–72% band and trimming saturation by 10%–20% preserves brand recognition while passing 4.5:1 contrast.
  • Dedicated borders and muted ink: A clear border step and a readable muted text token around 65%–70% lightness keep tables, metadata, and form hints structured without competing with primary headings.

Choosing between tinted, neutral, and OLED dark modes

Brand Tinted dark mode shines in consumer apps, creative studios, and modern SaaS products where atmosphere strengthens brand recall. A cool indigo brand naturally yields deep midnight surfaces, while a warm terracotta accent produces rich espresso charcoal cards.

Neutral Gray is the safest choice for photo editors, design workspaces, code tools, and multi-brand platforms where color accuracy matters and background tint should never skew how users judge uploaded media or charts.

True OLED lowers the base canvas close to zero luminance so OLED phone screens save power and blend seamlessly with hardware bezels, while still stepping card surfaces slightly brighter so interactive containers stay clearly separated.

Shipping dark theme CSS variables and Tailwind v4 tokens cleanly

The cleanest architecture defines identical semantic variable names inside :root for light mode and inside .dark or [data-theme='dark'] for dark mode. Components only reference semantic names like var(--surface), var(--border), var(--fg), and var(--primary), so toggling themes updates the entire interface with zero per-component overrides.

Do not forget primary button foreground contrast. When a brand accent lifts lighter in dark mode to stand out against dark cards, white button labels sometimes lose contrast. This generator automatically checks whether dark ink or crisp white achieves higher contrast on your derived primary color and outputs a dedicated --primary-fg token.

Explore complete light and dark systems on UINice

Color tokens are the starting point for theme parity, yet cohesive dark interfaces also adapt border opacity, chart palettes, code blocks, empty-state illustrations, and imagery framing. Testing your derived tokens on real navigation bars, form dialogs, and data tables reveals subtle contrast gaps long before release day.

Every preset in this dark mode palette generator links directly to its full UINice design system page so you can study how real products balance light and dark modes across typography, elevation, focus outlines, and complete component libraries. Export your verified token block, drop it into your global stylesheet, and ship a calm dark theme that feels thoughtfully crafted rather than hastily inverted.

Questions

Why should primary brand colors be slightly lighter and less saturated in dark mode?

Dark saturated colors lose contrast against dark card backgrounds, while neon-saturated hues vibrate optically on dark screens. Lifting lightness and trimming saturation by 10% to 20% keeps the brand recognizable and WCAG AA compliant.

How does elevation work in dark themes if drop shadows are hard to see?

Instead of relying only on dark drop shadows, dark themes express depth through progressively lighter surface steps: base background is darkest, cards are one step lighter, and popovers or modals sit one step higher with a crisp hairline border.

Should I use pure black (#000000) for my dark mode background?

Pure black works well for OLED-focused mobile apps and media players, but most text-heavy web apps feel calmer on deep charcoal (6%–9% lightness) because it softens halation and leaves room for recessed inputs.

Can I paste the exported tokens directly into Tailwind v4 or plain CSS?

Yes. Switch the output format between CSS custom properties, Tailwind v4 theme variables, or structured JSON and copy the generated block directly into your stylesheet or design token pipeline.

Related tools

Image color pickerPick colors, match a design systemColor palette generator2–10 lockable colors, unlimited local savePalette from imageExtract semantic tokens & moodboard cardTailwind color shadesFree 50–950 brand, neutral & status scalesshadcn theme generatorLive light/dark preview & CSS variablesPalette visualizerTest colors on live web pages + WCAG

Drop by · good things our friends made

Kubai Iconsicons.kubai.design
Open-source icons that move: folders open, bells ring
UINice
How the chart worksSubmit a siteBadgePricingTermsPrivacy PolicyRefund PolicyRequest removal
Every site is reviewed by hand. © 2026