#1F1785#1F1785
#1F1785 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.171 H 273.6°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1785 |
|---|---|
| RGB | rgb(31, 23, 133) |
| HSL | hsl(244, 71%, 31%) |
| HSV | hsv(244, 83%, 52%) |
| CMYK | cmyk(76.7%, 82.7%, 0%, 47.8%) |
| CIE-LAB | lab(18.35, 40.57, -58.87) |
| CIE-LCH | lch(18.35, 71.49, 304.57°) |
| OKLab | oklab(31.4% 0.0108 -0.1703) |
| OKLCH | oklch(31.4% 0.171 273.6) |
| XYZ | xyz(5.1037, 2.5970, 22.4181) |
| Luminance | 0.0260 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.22
Midnight Blue
#191970
ΔE00 3.56
Darkblue
#00008B
ΔE00 3.86
Navy
#000080
ΔE00 4.15
Indigo (survey)
#380282
ΔE00 4.49
Dark Royal Blue
#02066F
ΔE00 4.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1785 #7D8517
analogous
#174685 #1F1785 #561785
triadic
#1F1785 #851F17 #17851F
tetradic
#1F1785 #851746 #7D8517 #178556
square
#1F1785 #851746 #7D8517 #178556
split-complementary
#1F1785 #855617 #468517
monochromatic
#07051D #130E51 #1F1785 #2B20B9 #453ADD
Accessibility & contrast
On white
13.82
#1F1785 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#1F1785 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1785
13.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1785 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1785 | 1.00 | 13.82 | 1.52 | 13.82 |
| #FFFFFF | 13.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003288
Deuteranopia (green-blind)
#002783
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #1f1785; /* rgb */ color: rgb(31, 23, 133); /* oklch */ color: oklch(31.4% 0.171 273.6);
Tailwind
colors: {
custom: {
50: '#6e57aa',
500: '#1f1785',
950: '#000000',
},
}SCSS
$custom: #1f1785; $custom-light: #6e57aa; $custom-dark: #000000;
JSON
{
"hex": "#1f1785",
"rgb": {
"r": 31,
"g": 23,
"b": 133
},
"hsl": {
"h": 244.364,
"s": 70.513,
"l": 30.588
},
"oklch": {
"l": 0.31399,
"c": 0.17064,
"h": 273.6
},
"luminance": 0.02598
}Semantic roles & 50–950 ramp
primary
#1F1785
secondary
#B0B93F
accent
#ED3BE0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F