Midnight Melancholia

#002266

Slightly brighter midnight indigo with muted purple depth

Save
Share

About Midnight Melancholia

Look at midnight-lit UI panels where the background is almost-black but not quite. Midnight Melancholia is that that stays legible without tipping into deep-ocean black or bruise-sleep depth. It's cooler than 's warmer purples, yet it doesn't sink the way does, and it doesn't drift toward the bluer "ink" edge of . Midnight Melancholia feels more controlled and less "present" than a bright accent, more velvet than severe.

For dashboards and finance apps, it's my go-to when you need a secondary highlight that reads clearly on dark grays, but you don't want the assertive navy-leaning vibe of the darker blues nearby. Use it for status pills, inactive-but-not-disabled buttons, focus states, and chart annotations where the identity matters while the layout stays calm. It also works in healthcare software for quieter toggles and form section headers that should feel serious, not clinical.

One note: keep your neutrals cool. Warm grays push it toward a muddier violet, and it loses the crisp midnight restraint that makes the one you reach for in dark UI.

Gradient preview

See how this color looks in an animated mesh gradient.

Conversions

Click any value to copy.

Need this programmatically? Color API

Code snippets

Copy this color into your project.

Contrast checker

WCAG 2.1 contrast ratios. AA requires 4.5:1 for normal text, 3:1 for large. AAA requires 7:1 / 4.5:1.

On White #ffffff

Aa
14.78:1AAA

On Gray 100 #f5f5f5

Aa
13.56:1AAA

On Gray 900 #18181b

Aa
1.20:1Fail

On Black #000000

Aa
1.42:1Fail

Variations

Shades

Darker variations, created by mixing toward black.

Tints

Lighter variations, created by mixing toward white.

Tones

Muted variations, created by reducing saturation.

Hues

Hue rotations around the color wheel.

Temperatures

Warm and cool shifts of this color.

Color harmonies

Complementary
Analogous
Triadic
Split Complementary
Tetradic

Suggested palettes

Palettes built around this color.

4 colors
3 colors
4 colors
4 colors

Community palettes

Published palettes that include this color.

Create a gradient with Midnight Melancholia

Open the generator with this color pre-loaded.

Start creating