CSS Named Color

Copy-ready color values

HEX#191970
RGBrgb(25, 25, 112)
HSLhsl(240, 64%, 27%)
HSVhsv(240, 78%, 44%)
CMYK approx.cmyk(78, 78, 0, 56)

Color value table

FormatValueCopy
HEX#191970
RGBrgb(25, 25, 112)
HSLhsl(240, 64%, 27%)
HSVhsv(240, 78%, 44%)
CMYK approx.cmyk(78, 78, 0, 56)
CSS keywordmidnightblue

Contrast and classification

DarkLightness14.85:1Contrast with white1.41:1Contrast with blackBlue / CyanColor family

Shade and tint preview

White 10%
#30307E

White 30%
#5E5E9B

White 70%
#BABAD4

White 90%
#E8E8F1

Black 10%
#171765

Black 30%
#12124E

Black 70%
#080822

Black 90%
#03030B

Harmony palettes

Complementary

#E6E68F
#ECECAA

Analogous

#191966
#192366

Triadic

#197019
#701919

Split complementary

#EBEBA3
#BDBD75

Using Midnightblue

Midnightblue works best when it is chosen with contrast, surrounding colors, and interface state in mind. Use the HEX value for static CSS, RGB when you need channel-level control, and HSL when adjusting lightness or saturation for hover states. The CMYK value is an approximate screen-to-print conversion, so print workflows should still rely on calibrated design software or a printer profile.

CSS, SCSS, and Tailwind examples

:root {
  --color-midnightblue: #191970;
}

.button-primary {
  background: var(--color-midnightblue);
  color: #ffffff;
}

$midnightblue: #191970;

// Tailwind arbitrary value
class="bg-[#191970] text-white"