Dark Mode Palettes
Beautiful dark mode color palettes. Export dark UI colors as CSS variables or Tailwind config.
Design guide
Everything you need to know about Dark Mode Palettes
Dark mode design has become an essential skill for any UI designer or developer. Users spend hours in dark-mode interfaces to reduce eye strain, conserve battery on OLED screens, and work comfortably in low-light environments. A good dark mode palette is not an inverted light design, it requires its own careful thinking about surface levels, text hierarchy, semantic colors, and the specific contrast dynamics of light-on-dark composition.
What Makes a Good Dark Mode Palette?
The foundation of every excellent dark mode palette is a surface elevation system. Rather than using a single dark background color, the best dark interfaces use three or four levels of progressively lighter near-blacks to communicate spatial hierarchy without drop shadows. The page background sits at the darkest value; cards and content surfaces are one step lighter; modals and elevated panels are lighter still.
Avoid pure black (#000000) as your base. Pure black creates extreme contrast that contributes to eye fatigue, particularly at high screen brightness. Near-blacks in the #0F172A to #18181B range (a cool slate dark or neutral dark) are more comfortable for extended viewing and look more considered than default-black.
Text colors in dark mode should be near-white rather than pure white. #F1F5F9 or #E2E8F0 achieves sufficient contrast against dark backgrounds without the visual vibration of 21:1 pure black/white contrast. Use a three-level text hierarchy: primary (near-white), secondary (mid-grey), and muted (dark grey) to layer information without requiring every text element to compete for attention.
Best Background Colors for Dark UI
Dark mode backgrounds fall into two temperature categories: cool-shifted (slate blue-blacks) and warm-shifted (charcoal brown-blacks). Cool darks like #0F172A (Tailwind slate-900) or #0A0A12 (deep blue-black) feel technological, focused, and professional, the dominant aesthetic for developer tools, code editors, and technical SaaS products. Warm darks like #1C1917 (Tailwind stone-900) or #141210 feel cosy, editorial, and artisanal, better suited for creative tools, design applications, and premium consumer products.
For most professional software, cool-shifted darks are the safer choice. They photograph well in screen recordings, look professional across different monitor calibrations, and align with user expectations built by years of popular dark-mode tools like VS Code, Linear, and Vercel.
Accent and Semantic Colors in Dark Mode
Accent colors in dark mode need to be 10–20% lighter and more saturated than their light-mode equivalents to achieve equivalent visual weight. A blue-600 (#2563EB) that works perfectly on white appears muddy and under-powered against a dark slate background. Blue-400 (#60A5FA) achieves the same perceived intensity on dark backgrounds.
Semantic colors (success green, warning amber, error red) follow the same rule. Use Tailwind's 400-level values for dark mode and 600-level values for light mode to maintain consistent visual weight across both themes.
Border and divider colors in dark mode work best as very low-opacity whites rather than fixed greys. Using rgba(255,255,255,0.08) as your border value adapts automatically to varying surface colors, while a fixed grey can look too invisible on darker surfaces or too prominent on lighter ones.
:root {
--bg-base: #0F172A;
--bg-surface: #1E293B;
--bg-elevated: #334155;
--text-primary: #F1F5F9;
--text-secondary: #94A3B8;
--text-muted: #475569;
--color-primary: #60A5FA;
--color-success: #4ADE80;
--color-error: #F87171;
--border: rgba(255,255,255,0.08);
}Export any palette directly as CSS variables — one click, no account needed. Generate a full scale →
Accessibility note
Dark mode presents specific accessibility challenges. Verify that your text colors achieve at least 4.5:1 contrast against your surface colors. Remember that WCAG requirements apply equally to dark mode. Use the Contrast Checker to verify every text/surface combination. The Color Blindness Simulator is also essential for dark mode, some colorblind conditions affect how colors appear against dark backgrounds differently than light backgrounds.
Check contrast nowCommon Use Cases
Free Tools to Work with This Palette
Frequently Asked Questions
What makes a good dark mode color palette?
A good dark mode palette uses true-black or near-black backgrounds (#0A0A0A to #1A1A1A), layered surface colors, and desaturated accent colors to reduce eye strain while maintaining contrast.
Should dark mode backgrounds be pure black?
Not always — pure black (#000000) can feel harsh. Designers typically use off-blacks like #0F172A or #111827 which are easier on the eyes and give depth through layering.
What text contrast ratio is needed for dark mode?
WCAG AA requires a minimum contrast ratio of 4.5:1 for normal text and 3:1 for large text. Use our built-in Accessibility panel to check contrast for any palette.
Keep exploring
More palettes you'll probably love
Cool, calm & always in style
Blue Color Palettes →
Soft drops of pure sweetness
Pastel Color Palettes →
Rooted in nature's warmth
Earth Tone Palettes →
Pixels deserve better dressing
UI Color Schemes →
Curated for your vibes, bestie
Aesthetic Palettes →
Golden hour in your clipboard
Sunset Color Palettes →
404: Grey found — try green
Forest & Botanical →
Brightness cranked to illegal
Neon & Cyberpunk →
50 shades of actually useful
Monochrome & Greyscale →
Nostalgia hits different in HEX
Retro & Vintage →
Vacation mode: activated
Tropical & Summer →
Hygge but make it CSS
Nordic & Scandinavian →
Fall-ing for these colors
Autumn & Fall →
Something borrowed, something blue
Wedding & Romantic →
Vibes + wet sand + great CSS
Ocean & Coastal →
Enough color to cause a scene
Tutti Frutti →
The colors that built the internet
Brand Color Palettes →
Cold outside, stunning in CSS
Winter Color Palettes →
Fresh blooms for your next project
Spring Color Palettes →
Systematic beauty at scale
Design System Palettes →
Color your feelings, on purpose