#1F1786#1F1786
#1F1786 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.5% C 0.172 H 273.5°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1786 |
|---|---|
| RGB | rgb(31, 23, 134) |
| HSL | hsl(244, 71%, 31%) |
| HSV | hsv(244, 83%, 53%) |
| CMYK | cmyk(76.9%, 82.8%, 0%, 47.5%) |
| CIE-LAB | lab(18.47, 40.89, -59.30) |
| CIE-LCH | lch(18.47, 72.03, 304.59°) |
| OKLab | oklab(31.52% 0.0105 -0.1715) |
| OKLCH | oklch(31.52% 0.172 273.5) |
| XYZ | xyz(5.1731, 2.6248, 22.7836) |
| Luminance | 0.0262 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.09
Midnight Blue
#191970
ΔE00 3.70
Darkblue
#00008B
ΔE00 3.83
Navy
#000080
ΔE00 4.17
Indigo (survey)
#380282
ΔE00 4.49
Cobalt Blue
#030AA7
ΔE00 4.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1786 #7E8617
analogous
#174686 #1F1786 #561786
triadic
#1F1786 #861F17 #17861F
tetradic
#1F1786 #861746 #7E8617 #178656
square
#1F1786 #861746 #7E8617 #178656
split-complementary
#1F1786 #865617 #468617
monochromatic
#07051E #130E52 #1F1786 #2B20BA #463ADD
Accessibility & contrast
On white
13.77
#1F1786 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#1F1786 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1786
13.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1786 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1786 | 1.00 | 13.77 | 1.53 | 13.77 |
| #FFFFFF | 13.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003289
Deuteranopia (green-blind)
#002884
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #1f1786; /* rgb */ color: rgb(31, 23, 134); /* oklch */ color: oklch(31.5% 0.172 273.5);
Tailwind
colors: {
custom: {
50: '#6e57aa',
500: '#1f1786',
950: '#000000',
},
}SCSS
$custom: #1f1786; $custom-light: #6e57aa; $custom-dark: #000000;
JSON
{
"hex": "#1f1786",
"rgb": {
"r": 31,
"g": 23,
"b": 134
},
"hsl": {
"h": 244.324,
"s": 70.701,
"l": 30.784
},
"oklch": {
"l": 0.31519,
"c": 0.17186,
"h": 273.5
},
"luminance": 0.02625
}Semantic roles & 50–950 ramp
primary
#1F1786
secondary
#B1BA3F
accent
#ED3AE1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F