#1F217B#1F217B
#1F217B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.148 H 273.1°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).
Color values
| HEX | #1F217B |
|---|---|
| RGB | rgb(31, 33, 123) |
| HSL | hsl(239, 60%, 30%) |
| HSV | hsv(239, 75%, 48%) |
| CMYK | cmyk(74.8%, 73.2%, 0%, 51.8%) |
| CIE-LAB | lab(19.26, 31.32, -51.03) |
| CIE-LCH | lch(19.26, 59.87, 301.54°) |
| OKLab | oklab(31.71% 0.0081 -0.1476) |
| OKLCH | oklch(31.71% 0.148 273.1) |
| XYZ | xyz(4.6829, 2.8086, 19.0304) |
| Luminance | 0.0281 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.47
Royal
#0C1793
ΔE00 4.56
Dark Royal Blue
#02066F
ΔE00 6.15
Darkblue (survey)
#030764
ΔE00 6.64
Deep Blue
#040273
ΔE00 6.64
Navy
#000080
ΔE00 6.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F217B #7B791F
analogous
#1F4F7B #1F217B #4B1F7B
triadic
#1F217B #7B1F21 #217B1F
tetradic
#1F217B #7B1F4F #7B791F #1F7B4B
square
#1F217B #7B1F4F #7B791F #1F7B4B
split-complementary
#1F217B #7B4B1F #4F7B1F
monochromatic
#060719 #13144A #1F217B #2B2EAC #4447D0
Accessibility & contrast
On white
13.45
#1F217B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#1F217B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F217B
13.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F217B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F217B | 1.00 | 13.45 | 1.56 | 13.45 |
| #FFFFFF | 13.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #1f217b; /* rgb */ color: rgb(31, 33, 123); /* oklch */ color: oklch(31.7% 0.148 273.1);
Tailwind
colors: {
custom: {
50: '#6a5da2',
500: '#1f217b',
950: '#000000',
},
}SCSS
$custom: #1f217b; $custom-light: #6a5da2; $custom-dark: #000000;
JSON
{
"hex": "#1f217b",
"rgb": {
"r": 31,
"g": 33,
"b": 123
},
"hsl": {
"h": 238.696,
"s": 59.74,
"l": 30.196
},
"oklch": {
"l": 0.31706,
"c": 0.1478,
"h": 273.1
},
"luminance": 0.02809
}Semantic roles & 50–950 ramp
primary
#1F217B
secondary
#AEAC48
accent
#DF45E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F