#1F1987#1F1987
#1F1987 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.171 H 273.2°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1987 |
|---|---|
| RGB | rgb(31, 25, 135) |
| HSL | hsl(243, 69%, 31%) |
| HSV | hsv(243, 81%, 53%) |
| CMYK | cmyk(77%, 81.5%, 0%, 47.1%) |
| CIE-LAB | lab(18.95, 40.18, -59.14) |
| CIE-LCH | lch(18.95, 71.50, 304.20°) |
| OKLab | oklab(31.89% 0.0096 -0.1711) |
| OKLCH | oklch(31.89% 0.171 273.2) |
| XYZ | xyz(5.2844, 2.7353, 23.1664) |
| Luminance | 0.0274 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.00
Midnight Blue
#191970
ΔE00 3.73
Darkblue
#00008B
ΔE00 4.19
Navy
#000080
ΔE00 4.57
Cobalt Blue
#030AA7
ΔE00 4.79
Indigo (survey)
#380282
ΔE00 4.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1987 #818719
analogous
#194A87 #1F1987 #561987
triadic
#1F1987 #871F19 #19871F
tetradic
#1F1987 #87194A #818719 #198756
square
#1F1987 #87194A #818719 #198756
split-complementary
#1F1987 #875619 #4A8719
monochromatic
#070620 #130F53 #1F1987 #2B23BB #483FDB
Accessibility & contrast
On white
13.57
#1F1987 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#1F1987 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1987
13.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1987 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1987 | 1.00 | 13.57 | 1.55 | 13.57 |
| #FFFFFF | 13.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00338A
Deuteranopia (green-blind)
#002985
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #1f1987; /* rgb */ color: rgb(31, 25, 135); /* oklch */ color: oklch(31.9% 0.171 273.2);
Tailwind
colors: {
custom: {
50: '#6e59ab',
500: '#1f1987',
950: '#000000',
},
}SCSS
$custom: #1f1987; $custom-light: #6e59ab; $custom-dark: #000000;
JSON
{
"hex": "#1f1987",
"rgb": {
"r": 31,
"g": 25,
"b": 135
},
"hsl": {
"h": 243.273,
"s": 68.75,
"l": 31.373
},
"oklch": {
"l": 0.31887,
"c": 0.17137,
"h": 273.2
},
"luminance": 0.02736
}Semantic roles & 50–950 ramp
primary
#1F1987
secondary
#B4BA41
accent
#EC3CE2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F