#1F217A#1F217A
#1F217A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.146 H 273.2°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).
Color values
| HEX | #1F217A |
|---|---|
| RGB | rgb(31, 33, 122) |
| HSL | hsl(239, 59%, 30%) |
| HSV | hsv(239, 75%, 48%) |
| CMYK | cmyk(74.6%, 73%, 0%, 52.2%) |
| CIE-LAB | lab(19.16, 30.95, -50.56) |
| CIE-LCH | lch(19.16, 59.28, 301.47°) |
| OKLab | oklab(31.6% 0.0083 -0.1462) |
| OKLCH | oklch(31.6% 0.146 273.2) |
| XYZ | xyz(4.6206, 2.7837, 18.7024) |
| Luminance | 0.0278 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.39
Royal
#0C1793
ΔE00 4.70
Dark Royal Blue
#02066F
ΔE00 6.15
Darkblue (survey)
#030764
ΔE00 6.59
Deep Blue
#040273
ΔE00 6.66
Navy
#000080
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F217A #7A781F
analogous
#1F4F7A #1F217A #4A1F7A
triadic
#1F217A #7A1F21 #217A1F
tetradic
#1F217A #7A1F4F #7A781F #1F7A4A
square
#1F217A #7A1F4F #7A781F #1F7A4A
split-complementary
#1F217A #7A4A1F #4F7A1F
monochromatic
#060718 #131449 #1F217A #2B2EAB #4447CF
Accessibility & contrast
On white
13.49
#1F217A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#1F217A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F217A
13.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F217A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F217A | 1.00 | 13.49 | 1.56 | 13.49 |
| #FFFFFF | 13.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #1f217a; /* rgb */ color: rgb(31, 33, 122); /* oklch */ color: oklch(31.6% 0.146 273.2);
Tailwind
colors: {
custom: {
50: '#6a5da1',
500: '#1f217a',
950: '#000000',
},
}SCSS
$custom: #1f217a; $custom-light: #6a5da1; $custom-dark: #000000;
JSON
{
"hex": "#1f217a",
"rgb": {
"r": 31,
"g": 33,
"b": 122
},
"hsl": {
"h": 238.681,
"s": 59.477,
"l": 30
},
"oklch": {
"l": 0.316,
"c": 0.14645,
"h": 273.2
},
"luminance": 0.02784
}Semantic roles & 50–950 ramp
primary
#1F217A
secondary
#ADAB47
accent
#DF45E3
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F