#1F207D#1F207D
#1F207D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.152 H 273.2°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).
Color values
| HEX | #1F207D |
|---|---|
| RGB | rgb(31, 32, 125) |
| HSL | hsl(239, 60%, 31%) |
| HSV | hsv(239, 75%, 49%) |
| CMYK | cmyk(75.2%, 74.4%, 0%, 51%) |
| CIE-LAB | lab(19.24, 32.67, -52.33) |
| CIE-LCH | lch(19.24, 61.69, 301.98°) |
| OKLab | oklab(31.76% 0.0084 -0.1514) |
| OKLCH | oklch(31.76% 0.152 273.2) |
| XYZ | xyz(4.7820, 2.8045, 19.6874) |
| Luminance | 0.0280 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.50
Royal
#0C1793
ΔE00 4.10
Dark Royal Blue
#02066F
ΔE00 5.92
Navy
#000080
ΔE00 6.35
Deep Blue
#040273
ΔE00 6.36
Darkblue
#00008B
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F207D #7D7C1F
analogous
#1F4F7D #1F207D #4D1F7D
triadic
#1F207D #7D1F20 #207D1F
tetradic
#1F207D #7D1F4F #7D7C1F #1F7D4D
square
#1F207D #7D1F4F #7D7C1F #1F7D4D
split-complementary
#1F207D #7D4D1F #4F7D1F
monochromatic
#07071B #13134C #1F207D #2B2DAE #4547D1
Accessibility & contrast
On white
13.45
#1F207D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#1F207D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F207D
13.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F207D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F207D | 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)
#003380
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #1f207d; /* rgb */ color: rgb(31, 32, 125); /* oklch */ color: oklch(31.8% 0.152 273.2);
Tailwind
colors: {
custom: {
50: '#6b5ca4',
500: '#1f207d',
950: '#000000',
},
}SCSS
$custom: #1f207d; $custom-light: #6b5ca4; $custom-dark: #000000;
JSON
{
"hex": "#1f207d",
"rgb": {
"r": 31,
"g": 32,
"b": 125
},
"hsl": {
"h": 239.362,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.31758,
"c": 0.15161,
"h": 273.2
},
"luminance": 0.02805
}Semantic roles & 50–950 ramp
primary
#1F207D
secondary
#B0AF48
accent
#E244E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F