Midnight Blue color: #191970
The CSS keyword midnightblue is #191970, rgb(25, 25, 112) or hsl(240, 64%, 27%). Its codes to copy, 50–950 tint scale, harmonies and contrast on white and black.
Part of design tools.
About Midnight Blue
Midnight Blue is a very dark blue. Its hue sits at 273° in OKLCH and 240° in HSL — the two wheels are spaced differently, which is why the numbers disagree.
The keyword midnightblue comes from the X Window System color list, which SVG 1.0 adopted and CSS Color Level 3 brought to every stylesheet.
Midnight Blue tint scale, 50 to 950
Eleven steps at fixed perceived lightness, in OKLCH, holding midnightblue’s own hue from end to end. The keyword itself falls closest to step 900 (#171d59), the one outlined; step 500 is #6a7edc.
Harmonies built on Midnight Blue
Hue angles measured in OKLCH, so every accent keeps midnightblue’s perceived lightness. Its complement is #352a00, closest to the named color darkslategray.
Complementary
Analogous
Triadic
Split-complementary
Midnight Blue on white and on black
White text reads better on midnightblue (14.84:1). As a text color it is readable on a white page (14.84:1, AAA). AA asks 4.5:1 for body text and 3:1 for large text; AAA asks 7:1.
Named colors close to Midnight Blue
Open midnightblue in the full tools
- Open in Color Converter — convert it to any other notation.
- Open in Palette Generator — export its scale as --midnightblue-50 … --midnightblue-950 tokens.
- Open in Color Harmonies — turn the wheel and compare OKLCH with HSL.
- Open in Contrast Checker — test it against any background, with the closest passing shade.
- Open in Color System Generator — derive a light and dark token set from it.
Or browse every named color from the color converter.