Skip to content
PantoneTools
blue
CSS Named Colors

Midnightblue

midnightblue · #191970

HEX

#191970

RGB

rgb(25, 25, 112)

CMYK

cmyk(78%, 78%, 0%, 56%)

HSL

hsl(240, 64%, 27%)

LAB

lab(15.9, 31.7, -49.6)

What is Midnightblue?

Midnightblue is the midnightblue reference in the CSS Named Colors. Its sRGB value is #191970 (rgb 25, 25, 112). It sits in the blue family. The 147 named colors defined by the W3C CSS Color Module Level 4 specification — usable directly in CSS as keywords like 'crimson' or 'rebeccapurple'. See disclaimer for accuracy and trademark notes.

Accessibility

WCAG 2.1 contrast checks for Midnightblue as a background.

Black text on this color

Sample text · 1.41 : 1
AA Normal
AA Large
AAA Normal
AAA Large

White text on this color

Sample text · 14.85 : 1
AA Normal
AA Large
AAA Normal
AAA Large

Shades, tints & tonal scale of Midnightblue

An 11-step tonal scale derived from Midnightblue (#191970). Click any swatch to copy its HEX. Use these as a starting point for design tokens, hover states, and disabled states in a design system.

Copied #EDEDF4

50

#EDEDF4

#EDEDF4

Copied #DADAE8

100

#DADAE8

#DADAE8

Copied #B5B5D1

200

#B5B5D1

#B5B5D1

Copied #8C8CB8

300

#8C8CB8

#8C8CB8

Copied #535394

400

#535394

#535394

Copied #191970

500

#191970

#191970

Copied #15155F

600

#15155F

#15155F

Copied #101049

700

#101049

#101049

Copied #0B0B32

800

#0B0B32

#0B0B32

Copied #06061C

900

#06061C

#06061C

Copied #03030D

950

#03030D

#03030D

Lighter tints (mixed with white)

Copied #6F6F92

15%

#6F6F92

Copied #9696AC

30%

#9696AC

Copied #B4B4C2

45%

#B4B4C2

Copied #CCCCD5

60%

#CCCCD5

Copied #E1E1E6

75%

#E1E1E6

Darker shades (mixed with black)

Copied #161668

15%

#161668

Copied #14145F

30%

#14145F

Copied #101054

45%

#101054

Copied #0D0D48

60%

#0D0D48

Copied #080839

75%

#080839

Color harmonies for Midnightblue

Classic color-theory harmonies derived from rotating the hue of Midnightblue. Use these to build accent palettes, brand systems, and accessible UI color pairings.

Complementary

180° opposite — strongest contrast

Copied #191970

#191970

#191970

Copied #717119

#717119

#717119

Triadic

Three colors 120° apart

Copied #191970

#191970

#191970

Copied #711919

#711919

#711919

Copied #197119

#197119

#197119

Analogous

Two neighbors ±30° on the wheel

Copied #194571

#194571

#194571

Copied #191970

#191970

#191970

Copied #451971

#451971

#451971

Split-complementary

Base + two colors flanking its complement

Copied #191970

#191970

#191970

Copied #714519

#714519

#714519

Copied #457119

#457119

#457119

Tetradic

Two complementary pairs

Copied #191970

#191970

#191970

Copied #711971

#711971

#711971

Copied #717119

#717119

#717119

Copied #197119

#197119

#197119

Square

Four colors evenly spaced 90° apart

Copied #191970

#191970

#191970

Copied #711945

#711945

#711945

Copied #717119

#717119

#717119

Copied #197145

#197145

#197145

Midnightblue in every color space

Full conversion of Midnightblue across the color spaces designers and developers actually use — including OKLCH (the perceptually-uniform space that powers Tailwind v4 and CSS Color Module Level 4) and HWB.

HEX

#191970

RGB

rgb(25, 25, 112)

CMYK

cmyk(78%, 78%, 0%, 56%)

HSL

hsl(240, 64%, 27%)

HSV

hsv(240, 78%, 44%)

HWB

hwb(240 10% 56%)

CIE Lab

lab(15.9 31.7 -49.6)

OKLCH

oklch(28.8% 0.144 272.8)

XYZ (D65)

xyz(3.67, 2.07, 15.53)

Copy-ready code for Midnightblue

Drop-in snippets for CSS, Tailwind, Sass, iOS Swift, and Android XML. Click the copy button on any snippet to put it on your clipboard.

CSS

color: #191970;
background-color: #191970;

CSS variable

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

Tailwind config

// tailwind.config.js
colors: {
  'midnightblue': '#191970',
}

Sass

$color-midnightblue: #191970;

Swift UIColor

UIColor(red: 0.098, green: 0.098, blue: 0.439, alpha: 1.0)

Android XML

<color name="midnightblue">#191970</color>

Closest match in every color system

The nearest Midnightblue equivalent in every other color system on this site, ranked by ΔE2000 perceptual distance. Useful when translating between design-system, web-standard, and industrial color references.

Closest in CSS Named Colors

Top 6 ΔE2000-closest entries within the same collection.

Top 6 ΔE2000-closest Pantone references. Cross-system matching is approximate — see disclaimer.

Top 6 ΔE2000-closest RAL Classic references for industrial coating cross-reference.

Copied #1E2460

RAL 5005

#1E2460

Signal blue

Copied #20214F

RAL 5002

#20214F

Ultramarine blue

Copied #252850

RAL 5022

#252850

Night blue

Copied #0E294B

RAL 5010

#0E294B

Gentian blue

Copied #1D334A

RAL 5020

#1D334A

Ocean blue

Copied #063971

RAL 5017

#063971

Traffic blue

FAQ about Midnightblue

What is the HEX code for Midnightblue?

Midnightblue (midnightblue) has the HEX code #191970. In RGB it is rgb(25, 25, 112), and in CMYK it is cmyk(78%, 78%, 0%, 56%).

What is the OKLCH value of Midnightblue?

Midnightblue converts to oklch(0.288 0.144 272.8). OKLCH is the perceptually uniform color space used by Tailwind v4 and CSS Color Module Level 4.

Is Midnightblue accessible for body text?

Used as a background, Midnightblue has a contrast ratio of 1.41:1 with black text and 14.85:1 with white text. WCAG 2.1 AA requires 4.5:1 for normal text. The current recommendation is to use white text and verify in real UI context.

What is the closest Pantone to Midnightblue?

The closest Pantone reference to Midnightblue by ΔE2000 perceptual distance is Pantone Reflex Blue C (#001489). Cross-system Pantone matching is approximate; for color-critical print work, verify with a physical Pantone guide.

What is the closest RAL color to Midnightblue?

The closest RAL Classic reference to Midnightblue by ΔE2000 distance is RAL 5005 (Signal blue, #1E2460). RAL is a German industrial coating standard commonly used for paint, powder coat, and architectural specification.

What is the complementary color of Midnightblue?

The complementary color (180° opposite on the HSL color wheel) of Midnightblue is #717119. Use it for high-contrast accents, error states, or call-to-action pairings.

Data provenance & source

CSS Named Colors (CSS Color Module Level 4)

The 147 named colors defined by the W3C CSS Color Module Level 4 specification. Origin: VGA (16) + X11 (rest) + 'rebeccapurple'. Use as a reference for web color names that all browsers natively support. Names like 'crimson' or 'rebeccapurple' work as CSS values without any framework.

Source type
derived
Confidence
high
License
W3C permissive document license
Last reviewed
2026-05-24

Workflow tags

css
web-standard
named-keyword
blue

CSS named colors are sRGB digital values defined for browsers. For print, convert to a process-appropriate color and proof against substrate.

CSS Named Colors · Midnightblue — #191970 | PantoneTools