#1F3786#1F3786
#1F3786 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.0% C 0.136 H 266.7°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3786 |
|---|---|
| RGB | rgb(31, 55, 134) |
| HSL | hsl(226, 62%, 32%) |
| HSV | hsv(226, 77%, 53%) |
| CMYK | cmyk(76.9%, 59%, 0%, 47.5%) |
| CIE-LAB | lab(25.99, 20.62, -46.95) |
| CIE-LCH | lch(25.99, 51.28, 293.72°) |
| OKLab | oklab(36.97% -0.0078 -0.1354) |
| OKLCH | oklch(36.97% 0.136 266.7) |
| XYZ | xyz(6.2328, 4.7442, 23.1369) |
| Luminance | 0.0474 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.65
Darkish Blue
#014182
ΔE00 5.70
Cobalt (survey)
#1E488F
ΔE00 5.98
Marine Blue
#01386A
ΔE00 6.28
Blueberry
#464196
ΔE00 6.39
Marine
#042E60
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3786 #866E1F
analogous
#1F6B86 #1F3786 #3A1F86
triadic
#1F3786 #861F37 #37861F
tetradic
#1F3786 #861F6B #866E1F #1F863A
square
#1F3786 #861F6B #866E1F #1F863A
split-complementary
#1F3786 #863A1F #6B861F
monochromatic
#080E23 #142354 #1F3786 #2A4BB8 #4A6BD5
Accessibility & contrast
On white
10.77
#1F3786 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.95
#1F3786 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3786
10.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3786 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3786 | 1.00 | 10.77 | 1.95 | 10.77 |
| #FFFFFF | 10.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004289
Deuteranopia (green-blind)
#003984
Tritanopia (blue-blind)
#004B59
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #1f3786; /* rgb */ color: rgb(31, 55, 134); /* oklch */ color: oklch(37.0% 0.136 266.7);
Tailwind
colors: {
custom: {
50: '#6b6daa',
500: '#1f3786',
950: '#000000',
},
}SCSS
$custom: #1f3786; $custom-light: #6b6daa; $custom-dark: #000000;
JSON
{
"hex": "#1f3786",
"rgb": {
"r": 31,
"g": 55,
"b": 134
},
"hsl": {
"h": 226.019,
"s": 62.424,
"l": 32.353
},
"oklch": {
"l": 0.3697,
"c": 0.13566,
"h": 266.7
},
"luminance": 0.04745
}Semantic roles & 50–950 ramp
primary
#1F3786
secondary
#B89E49
accent
#BF42E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080710
muted
#7A7A7F