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
White text on this color
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.
50
#EDEDF4
#EDEDF4
100
#DADAE8
#DADAE8
200
#B5B5D1
#B5B5D1
300
#8C8CB8
#8C8CB8
400
#535394
#535394
500
#191970
#191970
600
#15155F
#15155F
700
#101049
#101049
800
#0B0B32
#0B0B32
900
#06061C
#06061C
950
#03030D
#03030D
Lighter tints (mixed with white)
15%
#6F6F92
30%
#9696AC
45%
#B4B4C2
60%
#CCCCD5
75%
#E1E1E6
Darker shades (mixed with black)
15%
#161668
30%
#14145F
45%
#101054
60%
#0D0D48
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
#191970
#191970
#717119
#717119
Triadic
Three colors 120° apart
#191970
#191970
#711919
#711919
#197119
#197119
Analogous
Two neighbors ±30° on the wheel
#194571
#194571
#191970
#191970
#451971
#451971
Split-complementary
Base + two colors flanking its complement
#191970
#191970
#714519
#714519
#457119
#457119
Tetradic
Two complementary pairs
#191970
#191970
#711971
#711971
#717119
#717119
#197119
#197119
Square
Four colors evenly spaced 90° apart
#191970
#191970
#711945
#711945
#717119
#717119
#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.
Closest Pantone matches
Top 6 ΔE2000-closest Pantone references. Cross-system matching is approximate — see disclaimer.
Closest RAL Classic matches
Top 6 ΔE2000-closest RAL Classic references for industrial coating cross-reference.
RAL 5005
#1E2460
Signal blue
RAL 5002
#20214F
Ultramarine blue
RAL 5022
#252850
Night blue
RAL 5010
#0E294B
Gentian blue
RAL 5020
#1D334A
Ocean blue
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 named colors are sRGB digital values defined for browsers. For print, convert to a process-appropriate color and proof against substrate.