CSS Named Color Reference

Midnight Blue Color Code

Midnight Blue·#191970

Blue FamilyCoolDark toneMid saturationoklch(28.8% 0.144 273)
HEX
#191970Primary token
RGB
rgb(25, 25, 112)Screen values
HSL
hsl(240 64% 27%)Hue and lightness
CMYK
78, 78, 0, 56Print handoff
LAB
16, 32, -50Perceptual reference
OKLCH
oklch(28.8% 0.144 273)Modern perceptual

Midnight Blue is a dark CSS named blue at #191970 that feels more cinematic, cooler, and slightly more chromatic than Navy. Use it when you need a near-night anchor for dark themes, dashboards, hero backdrops, and interface shells that should feel deep without collapsing fully into black.

Best text colorWhite text
Body text contrast14.85:1
Best UseDark themes, terminal-like shells, and dramatic interface framing

Tonal Scale

100#D6D6E5
300#9595BD
500#42428A
600#191970
800#121251

Contrast Checks

White text on this color

Buttons, badges, and filled actions.

14.85:1AAA-level contrast

Dark text on this color

Large headings and selective UI.

1.16:1Needs more separation

This color on light surface

Links, borders, and icons on light UI.

14.10:1AAA-level contrast
Best text colorWhite textContrast 14.85:1

Professional Reference

OKLCHoklch(28.8% 0.144 273)
Relative Luminance0.0207
Source TypeCSS Named Color
Classification
Blue FamilyCoolDark toneMid saturation
Source Context
Source Type
CSS Named Color
System
CSS
Closest Matches
Material Indigo 900Tailwind Violet 950Ant Design Purple 9

Accessibility Matrix

White text on this color

White text placed on the current color.

14.85:1AAA

Dark text on this color

Dark text or headings on the current color.

1.16:1Needs more separation

This color on light surface

Use this color for links, strokes, or icons on light UI.

14.10:1AAA

This color on dark surface

Use this color inside dark shells for strokes, tags, or icons.

1.16:1Needs more separation
Best text colorWhite textContrast 14.85:1 · AAA

Where It Works

  • Dashboards, immersive shells, hero backdrops, and code-like surfaces.
  • Dramatic dark structure with visible blue identity.
  • Pairs with white, silver-gray, and electric or royal blue.

Reference Notes

Last Updated
2026-06-25
Source Library
CSS Standard Colors
Methodology
Verified source values + site guidance
Color Notes

Midnight Blue is sourced from the published CSS Standard Colors library and retained here as a searchable reference swatch for product and interface reference work.

Hue Family

Trust-building blues for enterprise and SaaS.

Source Collections
CSS Named Colors

Related Colors

Palette Starting Points

Implementation Snippets

CSS Variables
:root {
  --color-midnight-blue: #191970;
  --color-midnight-blue-rgb: 25 25 112;
}
Utility Class
class="bg-[#191970] text-white"
class="hover:bg-[#121251] ring-1 ring-[#191970]"
JSON Token
{
  "midnightBlue": "#191970",
  "midnightBlueRgb": [25, 25, 112],
  "midnightBlueHsl": [240, 64, 27]
}