#1F2786#1F2786
#1F2786 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.156 H 271.1°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2786 |
|---|---|
| RGB | rgb(31, 39, 134) |
| HSL | hsl(235, 62%, 32%) |
| HSV | hsv(235, 77%, 53%) |
| CMYK | cmyk(76.9%, 70.9%, 0%, 47.5%) |
| CIE-LAB | lab(21.81, 31.49, -53.79) |
| CIE-LCH | lch(21.81, 62.33, 300.35°) |
| OKLab | oklab(33.89% 0.0031 -0.1556) |
| OKLCH | oklch(33.89% 0.156 271.1) |
| XYZ | xyz(5.5922, 3.4630, 22.9233) |
| Luminance | 0.0346 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 4.53
Midnight Blue
#191970
ΔE00 4.61
Sapphire (survey)
#2138AB
ΔE00 6.70
Cobalt Blue
#030AA7
ΔE00 7.25
Darkblue
#00008B
ΔE00 7.71
Darkslateblue
#483D8B
ΔE00 7.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2786 #867E1F
analogous
#1F5A86 #1F2786 #4B1F86
triadic
#1F2786 #861F27 #27861F
tetradic
#1F2786 #861F5A #867E1F #1F864B
square
#1F2786 #861F5A #867E1F #1F864B
split-complementary
#1F2786 #864B1F #5A861F
monochromatic
#080A23 #141954 #1F2786 #2A35B8 #4A55D5
Accessibility & contrast
On white
12.41
#1F2786 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#1F2786 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2786
12.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2786 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2786 | 1.00 | 12.41 | 1.69 | 12.41 |
| #FFFFFF | 12.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #1f2786; /* rgb */ color: rgb(31, 39, 134); /* oklch */ color: oklch(33.9% 0.156 271.1);
Tailwind
colors: {
custom: {
50: '#6c61aa',
500: '#1f2786',
950: '#000000',
},
}SCSS
$custom: #1f2786; $custom-light: #6c61aa; $custom-dark: #000000;
JSON
{
"hex": "#1f2786",
"rgb": {
"r": 31,
"g": 39,
"b": 134
},
"hsl": {
"h": 235.34,
"s": 62.424,
"l": 32.353
},
"oklch": {
"l": 0.33886,
"c": 0.15567,
"h": 271.1
},
"luminance": 0.03464
}Semantic roles & 50–950 ramp
primary
#1F2786
secondary
#B8AF49
accent
#D942E5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F