Midnight UI
A ready-made dark-mode starter: three slate surfaces, one violet accent, one near-white text tone. The surface steps are close enough to layer cards without hard borders.
Colors
Export color codes
Accessibility snapshot
Each color's WCAG contrast ratio against white and black text — AA means it can carry normal-size text (≥4.5:1) on that background. Test your exact pairings in the contrast checker.
Color blindness safety
Every pair in this palette (10 pairs) checked with CIEDE2000 under normal vision plus the four strongest color vision deficiency types. A pair is flagged when it drops below ΔE 10 — the zone where colors get hard to tell apart at a glance.
Swatches show the pair as that viewer would see it. Flagged pairs are fine decoratively — just don’t make them the only difference between two states. Explore any pair in the simulator.
In a real interface
Roles assigned by lightness: the lightest color as background, the darkest as text, the first two palette colors as primary and accent.
Midnight UI
This is how the palette reads when its colors take on interface roles.
CSS variables
--color-1: #020618;
--color-2: #1d293d;
--color-3: #45556c;
--color-4: #8e51ff;
--color-5: #f8fafc;
Related tools
HEX to RGB Converter
Convert any HEX color code to its RGB and HSL equivalents, live, with copy-to-clipboard values.
Try it → AccessibilityContrast Checker
Check the WCAG contrast ratio between any two colors, live, with AA/AAA pass-fail results.
Try it → GeneratorsPalette Generator
Generate complementary, analogous, triadic, split-complementary, tetradic, square, and monochromatic palettes from any base color.
Try it →Make this palette your own
Turn it into a gradient with one click, or start fresh from any of its colors.