#1F3F86#1F3F86
#1F3F86 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 38.7% C 0.125 H 263.4°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3F86 |
|---|---|
| RGB | rgb(31, 63, 134) |
| HSL | hsl(221, 62%, 32%) |
| HSV | hsv(221, 77%, 53%) |
| CMYK | cmyk(76.9%, 53%, 0%, 47.5%) |
| CIE-LAB | lab(28.29, 15.05, -43.22) |
| CIE-LCH | lch(28.29, 45.76, 289.21°) |
| OKLab | oklab(38.71% -0.0143 -0.1243) |
| OKLCH | oklch(38.71% 0.125 263.4) |
| XYZ | xyz(6.6441, 5.5668, 23.2740) |
| Luminance | 0.0557 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.22
Darkish Blue
#014182
ΔE00 3.30
Twilight Blue
#0A437A
ΔE00 4.33
Marine Blue
#01386A
ΔE00 5.26
Cobalt
#0047AB
ΔE00 5.43
Prussian Blue
#004577
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3F86 #86661F
analogous
#1F7386 #1F3F86 #321F86
triadic
#1F3F86 #861F3F #3F861F
tetradic
#1F3F86 #861F73 #86661F #1F8632
square
#1F3F86 #861F73 #86661F #1F8632
split-complementary
#1F3F86 #86321F #73861F
monochromatic
#081023 #142854 #1F3F86 #2A56B8 #4A75D5
Accessibility & contrast
On white
9.94
#1F3F86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#1F3F86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3F86
9.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3F86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3F86 | 1.00 | 9.94 | 2.11 | 9.94 |
| #FFFFFF | 9.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#114889
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #1f3f86; /* rgb */ color: rgb(31, 63, 134); /* oklch */ color: oklch(38.7% 0.125 263.4);
Tailwind
colors: {
custom: {
50: '#6a73aa',
500: '#1f3f86',
950: '#000000',
},
}SCSS
$custom: #1f3f86; $custom-light: #6a73aa; $custom-dark: #000000;
JSON
{
"hex": "#1f3f86",
"rgb": {
"r": 31,
"g": 63,
"b": 134
},
"hsl": {
"h": 221.359,
"s": 62.424,
"l": 32.353
},
"oklch": {
"l": 0.38706,
"c": 0.12515,
"h": 263.4
},
"luminance": 0.05568
}Semantic roles & 50–950 ramp
primary
#1F3F86
secondary
#B89549
accent
#B342E5
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070810
muted
#7A7B7F