Midnight UI
Best text pair:Aa#0D1117 on #C9D1D912.3:1AAA
12 free palettes with hex codes. Dark UI backgrounds, surfaces, text and one accent. Click any color to copy it.
A dark mode palette is more than black and white. Each palette here follows the same structure: a near-black page background, a slightly lighter surface for cards, a border or raised-surface color, a light text color and one accent. Using dark grays instead of pure black reduces glare and lets you show depth by making raised surfaces lighter.
Contrast still matters in the dark. Light text on the background should reach at least 4.5:1, and the accent should be a lighter, less saturated version of your brand color, since fully saturated colors vibrate on dark backgrounds. Test the accent as both text and button fill, because a color that works as a link may need dark text when it becomes a button.
Best text pair:Aa#0D1117 on #C9D1D912.3:1AAA
Best text pair:Aa#121212 on #E0E0E014.2:1AAA
Best text pair:Aa#0B132B on #E0FBFC17.0:1AAA
Best text pair:Aa#0F1A14 on #E9F5EC15.9:1AAA
Best text pair:Aa#1A1423 on #D7C6E811.2:1AAA
Best text pair:Aa#0F172A on #CBD5E112.0:1AAA
Best text pair:Aa#1B1512 on #E8DCCF13.4:1AAA
Best text pair:Aa#2B303B on #E5E9F010.9:1AAA
Best text pair:Aa#121010 on #F1E3E315.2:1AAA
Best text pair:Aa#0A0E0A on #B8F5B815.5:1AAA
Best text pair:Aa#101014 on #EDEDF216.3:1AAA
Best text pair:Aa#18121A on #F3E6F015.2:1AAA