A very dark blue, like a moonless night sky. It's a softer alternative to black. It's used for evening wear, bedrooms and elegant backgrounds.
Midnight blue (#191970) is a cool, dark, moderately saturated color. It belongs to the blues family. It mixes 25 red, 25 green and 112 blue (out of 255). It is mostly used in fashion, home decor, events.
From lightest to darkest. Tap a shade to copy its code.
Combinations based on the color wheel. More in the color harmony tool.
Copy the codes or open a palette in the editor to tweak it.
Based on WCAG 2.1 guidelines. Test other pairs in the contrast checker.
:root {
--midnight-blue: #191970;
--midnight-blue-rgb: 25, 25, 112;
}
.bg { background-color: var(--midnight-blue); }
.text { color: var(--midnight-blue); }The hex code for midnight blue is #191970. In RGB it is rgb(25, 25, 112), in HSL hsl(240, 64%, 27%) and in CMYK 78, 78, 0, 56.
Its complement on the color wheel is #707019, close to olive green. Used in small doses, it works as an accent and adds strong contrast.
Yes. The contrast with white is 14.8:1, enough for body text (WCAG AA).