#1F207F#1F207F
#1F207F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.154 H 273.0°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).
Color values
| HEX | #1F207F |
|---|---|
| RGB | rgb(31, 32, 127) |
| HSL | hsl(239, 61%, 31%) |
| HSV | hsv(239, 76%, 50%) |
| CMYK | cmyk(75.6%, 74.8%, 0%, 50.2%) |
| CIE-LAB | lab(19.46, 33.39, -53.25) |
| CIE-LCH | lch(19.46, 62.85, 302.09°) |
| OKLab | oklab(31.98% 0.008 -0.154) |
| OKLCH | oklch(31.98% 0.154 273) |
| XYZ | xyz(4.9111, 2.8561, 20.3670) |
| Luminance | 0.0286 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.73
Royal
#0C1793
ΔE00 3.81
Dark Royal Blue
#02066F
ΔE00 5.98
Darkblue
#00008B
ΔE00 6.22
Navy
#000080
ΔE00 6.27
Deep Blue
#040273
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F207F #7F7E1F
analogous
#1F507F #1F207F #4E1F7F
triadic
#1F207F #7F1F20 #207F1F
tetradic
#1F207F #7F1F50 #7F7E1F #1F7F4E
square
#1F207F #7F1F50 #7F7E1F #1F7F4E
split-complementary
#1F207F #7F4E1F #507F1F
monochromatic
#07071D #13144E #1F207F #2B2CB0 #4648D2
Accessibility & contrast
On white
13.36
#1F207F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#1F207F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F207F
13.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F207F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F207F | 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)
#003482
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #1f207f; /* rgb */ color: rgb(31, 32, 127); /* oklch */ color: oklch(32.0% 0.154 273.0);
Tailwind
colors: {
custom: {
50: '#6b5ca5',
500: '#1f207f',
950: '#000000',
},
}SCSS
$custom: #1f207f; $custom-light: #6b5ca5; $custom-dark: #000000;
JSON
{
"hex": "#1f207f",
"rgb": {
"r": 31,
"g": 32,
"b": 127
},
"hsl": {
"h": 239.375,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.31976,
"c": 0.15426,
"h": 273
},
"luminance": 0.02857
}Semantic roles & 50–950 ramp
primary
#1F207F
secondary
#B2B148
accent
#E244E4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F