Midnight Melancholia
Midnight Melancholia is a very dark, saturated blue color with the hex code #002266 (hue 220°, saturation 100%, lightness 20%).
- HEX
#002266 - RGB
rgb(0 34 102) - HSL
hsl(220 100% 20%) - OKLCH
oklch(28.3% 0.126 261)
| Name | HEX | RGB | HSL | CMYK | OKLCH | |
|---|---|---|---|---|---|---|
| Midnight Melancholia | #002266 | 0, 34, 102 | 220°, 100%, 20% | 100, 67, 0, 60 | 28.3% 0.126 261 |
Contrast with white text 14.78:1, with black text 1.42:1 — use white text on Midnight Melancholia.
Huebook · Maintained by Iris Marlow (pen name) · automated checks · Data: color-name-list (MIT) for names; CSS Color Module Level 4 (W3C) for CSS named colors · Updated · How the checks work
Adjust Midnight Melancholia
Move the sliders to make Midnight Melancholia lighter, darker, more or less vivid, or shift its hue. The nearest named colors update as you go.
- HEX
#002266 - RGB
rgb(0 34 102) - HSL
hsl(220 100% 20%)
Variations of Midnight Melancholia
Text on Midnight Melancholia
WCAG 2 asks for 4.5:1 for body text and 3:1 for large text (AA), and 7:1 and 4.5:1 for the stricter AAA level.
Midnight Melancholia with color blindness
How Midnight Melancholia appears with a complete loss of red (protanopia), green (deuteranopia) or blue (tritanopia) cones, simulated with the Machado, Oliveira and Fernandes (2009) model. Red-green color blindness affects about 1 in 12 men and 1 in 200 women, so do not rely on color alone to carry meaning.
Tints and shades
Colors that go with Midnight Melancholia
Six color schemes built on Midnight Melancholia with classic harmony rules. The complementary scheme pairs it with Notorious Neanderthal (#664400), the color opposite it on the color wheel.
- Midnight Melancholia Complementary Color Scheme#002266#024ACA#664400#1C1208#C68400
- Midnight Melancholia Analogous Color Scheme#016844#005566#002266#110066#4B006E
- Midnight Melancholia Triadic Color Scheme#002266#650021#226600#024ACA#1D0200
- Midnight Melancholia Split-complementary Color Scheme#002266#661100#556600#01081C#B21B00
- Midnight Melancholia Tetradic Color Scheme#002266#64005E#664400#006611#024ACA
- Midnight Melancholia Monochromatic Color Scheme#01081C#01081C#002266#0034AB#0055FF
Nearest CSS named colors
- Midnight Blue (
midnightblue): Midnight Blue (#191970) is about as light as Midnight Melancholia (relative luminance 0.021 vs 0.021) and less saturated, with its hue 20° away. - Navy (
navy): Navy (#000080) is darker than Midnight Melancholia (relative luminance 0.016 vs 0.021) and equally saturated, with its hue 20° away. - Dark Blue (CSS) (
darkblue): Dark Blue (CSS) (#00008B) is about as light as Midnight Melancholia (relative luminance 0.019 vs 0.021) and equally saturated, with its hue 20° away. - Indigo (
indigo): Indigo (#4B0082) is lighter than Midnight Melancholia (relative luminance 0.031 vs 0.021) and equally saturated, with its hue 55° away.
Gradients with Midnight Melancholia
Similar dark blue colors
- 20000 Leagues Under the Sea#191970
- 3AM in Shibuya#225577
- Abyssal#404C57
- Aegean Blue#1B416F
- Alone in the Dark#000066
- Assassin#2D4F83
- Astral#376F89
- Atlantic Navy#13336F
- Atlantis#336172
- Below the Surface#0A2F7C
- Beyond the Sea#005784
- Black Market#222244
- Black Sea Night#052462
- Black Turmeric#2C4364
- Blue Chip#1D5699
- Blue Funk#2D4470
- Blue Hour#0034AB
- Blue Screen of Death#0033BB
Questions
What is the hex code for Midnight Melancholia?
#002266 — RGB 0, 34, 102, HSL 220°, 100%, 20%.
Is Midnight Melancholia a warm or cool color?
Cool — its hue sits at 220° on the color wheel.