#1F217D#1F217D
#1F217D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.150 H 273.0°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).
Color values
| HEX | #1F217D |
|---|---|
| RGB | rgb(31, 33, 125) |
| HSL | hsl(239, 60%, 31%) |
| HSV | hsv(239, 75%, 49%) |
| CMYK | cmyk(75.2%, 73.6%, 0%, 51%) |
| CIE-LAB | lab(19.47, 32.04, -51.95) |
| CIE-LCH | lch(19.47, 61.04, 301.66°) |
| OKLab | oklab(31.92% 0.0078 -0.1503) |
| OKLCH | oklch(31.92% 0.15 273) |
| XYZ | xyz(4.8094, 2.8592, 19.6965) |
| Luminance | 0.0286 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.65
Royal
#0C1793
ΔE00 4.27
Dark Royal Blue
#02066F
ΔE00 6.17
Deep Blue
#040273
ΔE00 6.62
Navy
#000080
ΔE00 6.63
Darkblue
#00008B
ΔE00 6.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F217D #7D7B1F
analogous
#1F507D #1F217D #4C1F7D
triadic
#1F217D #7D1F21 #217D1F
tetradic
#1F217D #7D1F50 #7D7B1F #1F7D4C
square
#1F217D #7D1F50 #7D7B1F #1F7D4C
split-complementary
#1F217D #7D4C1F #507D1F
monochromatic
#07071B #13144C #1F217D #2B2EAE #4548D1
Accessibility & contrast
On white
13.36
#1F217D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#1F217D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F217D
13.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F217D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F217D | 1.00 | 13.36 | 1.57 | 13.36 |
| #FFFFFF | 13.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #1f217d; /* rgb */ color: rgb(31, 33, 125); /* oklch */ color: oklch(31.9% 0.150 273.0);
Tailwind
colors: {
custom: {
50: '#6b5da4',
500: '#1f217d',
950: '#000000',
},
}SCSS
$custom: #1f217d; $custom-light: #6b5da4; $custom-dark: #000000;
JSON
{
"hex": "#1f217d",
"rgb": {
"r": 31,
"g": 33,
"b": 125
},
"hsl": {
"h": 238.723,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.31921,
"c": 0.15049,
"h": 273
},
"luminance": 0.0286
}Semantic roles & 50–950 ramp
primary
#1F217D
secondary
#B0AE48
accent
#E044E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F