Midnight Melancholia
#002266
Slightly brighter midnight indigo with muted purple depth
About Midnight Melancholia
Look at midnight-lit UI panels where the background is almost-black but not quite. Midnight Melancholia is that purple that stays legible without tipping into deep-ocean black or bruise-sleep depth. It's cooler than Purple's warmer purples, yet it doesn't sink the way Black Sea Night does, and it doesn't drift toward the bluer "ink" edge of Deep Sea Nightmare. Midnight Melancholia feels more controlled and less "present" than a bright purple 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 purple 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.
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
On Gray 100 #f5f5f5
On Gray 900 #18181b
On Black #000000
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
Suggested palettes
Palettes built around this color.
Community palettes
Published palettes that include this color.
Similar colors
Create a gradient with Midnight Melancholia
Open the generator with this color pre-loaded.
Start creating