#1F207E#1F207E
#1F207E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.153 H 273.1°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).
Color values
| HEX | #1F207E |
|---|---|
| RGB | rgb(31, 32, 126) |
| HSL | hsl(239, 61%, 31%) |
| HSV | hsv(239, 75%, 49%) |
| CMYK | cmyk(75.4%, 74.6%, 0%, 50.6%) |
| CIE-LAB | lab(19.35, 33.03, -52.79) |
| CIE-LCH | lch(19.35, 62.27, 302.04°) |
| OKLab | oklab(31.87% 0.0082 -0.1527) |
| OKLCH | oklch(31.87% 0.153 273.1) |
| XYZ | xyz(4.8462, 2.8302, 20.0255) |
| Luminance | 0.0283 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.61
Royal
#0C1793
ΔE00 3.95
Dark Royal Blue
#02066F
ΔE00 5.95
Darkblue
#00008B
ΔE00 6.30
Navy
#000080
ΔE00 6.31
Deep Blue
#040273
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F207E #7E7D1F
analogous
#1F4F7E #1F207E #4D1F7E
triadic
#1F207E #7E1F20 #207E1F
tetradic
#1F207E #7E1F4F #7E7D1F #1F7E4D
square
#1F207E #7E1F4F #7E7D1F #1F7E4D
split-complementary
#1F207E #7E4D1F #4F7E1F
monochromatic
#07071C #13144D #1F207E #2B2CAF #4647D1
Accessibility & contrast
On white
13.41
#1F207E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#1F207E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F207E
13.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F207E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F207E | 1.00 | 13.41 | 1.57 | 13.41 |
| #FFFFFF | 13.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #1f207e; /* rgb */ color: rgb(31, 32, 126); /* oklch */ color: oklch(31.9% 0.153 273.1);
Tailwind
colors: {
custom: {
50: '#6b5ca4',
500: '#1f207e',
950: '#000000',
},
}SCSS
$custom: #1f207e; $custom-light: #6b5ca4; $custom-dark: #000000;
JSON
{
"hex": "#1f207e",
"rgb": {
"r": 31,
"g": 32,
"b": 126
},
"hsl": {
"h": 239.368,
"s": 60.51,
"l": 30.784
},
"oklch": {
"l": 0.31867,
"c": 0.15293,
"h": 273.1
},
"luminance": 0.02831
}Semantic roles & 50–950 ramp
primary
#1F207E
secondary
#B1B048
accent
#E244E4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F