PALETTE GALLERY
Dark mode color palette
A dark-mode palette is a surface-layering problem before it is a color problem. This set defines three distinct dark surfaces, void, elevated, and card, each a few percent lighter than the last, plus an electric blue primary and signal red for destructive actions.
- Electric BluePrimary#58A6FF
- Signal GreenAccent#3FB950
- Signal RedDanger#F85149
- CardSurface#21262D
- FogText#C9D1D9
- VoidBackground#0D1117
Where this palette works
Developer tools and code editors
Layered dark surfaces with a single saturated accent is the established pattern for IDEs and terminal-adjacent products.
Media and video-heavy interfaces
A near-black background keeps video and image content the brightest element on screen.
Late-use products and accessibility-first apps
Lower overall luminance reduces eye strain in low-light use, provided text still clears AA against the darkest surface.
Accessible pairings
Fog is the workhorse text color here: it clears AAA against both card and void, so the same text token works whether copy sits on the base background or an elevated card.
Use these tokens
Copy as CSS custom properties or a Tailwind v4 @theme block.
:root {
--palette-primary: #58A6FF; /* Electric Blue */
--palette-accent: #3FB950; /* Signal Green */
--palette-danger: #F85149; /* Signal Red */
--palette-surface: #21262D; /* Card */
--palette-text: #C9D1D9; /* Fog */
--palette-background: #0D1117; /* Void */
}FAQ
Frequently asked questions
A single flat dark background makes elevation invisible, cards and modals disappear into the page. Void, elevated, and card give a lightness ladder so stacked surfaces stay visually distinct without relying on shadows, which read poorly on dark backgrounds.
Technically yes for contrast, since anything reads well against #000000, but pure black causes halation, a glow-like blur, around light text on OLED screens. Void (#0D1117) is close enough to black for the dark aesthetic while avoiding that artifact.
Push the lightness up from what would be used on a light background. Electric Blue here sits noticeably lighter than a typical light-mode primary blue, because a mid-tone blue that reads fine on white can drop under 3:1 against a near-black page.
Related palettes
Neon palette
A neon color palette built from neon green, electric magenta, and cyber cyan on a near-black background, with hex codes and accessible pairings.
Monochrome palette
A true grayscale monochrome color palette from ink to cloud, six steps, with hex codes, accessible text pairings, and export-ready CSS variables.
Jewel tone palette
A jewel tone color palette built from emerald, sapphire, ruby, and amethyst, with hex codes, accessible text pairings, and export-ready CSS variables.
Build on this palette
Generate a full shade scale and export to Tailwind, shadcn, or Figma Variables.