#1F3F87#1F3F87
#1F3F87 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 38.8% C 0.127 H 263.6°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3F87 |
|---|---|
| RGB | rgb(31, 63, 135) |
| HSL | hsl(222, 63%, 33%) |
| HSV | hsv(222, 77%, 53%) |
| CMYK | cmyk(77%, 53.3%, 0%, 47.1%) |
| CIE-LAB | lab(28.37, 15.46, -43.72) |
| CIE-LCH | lch(28.37, 46.37, 289.47°) |
| OKLab | oklab(38.79% -0.0142 -0.1258) |
| OKLCH | oklch(38.79% 0.127 263.6) |
| XYZ | xyz(6.7142, 5.5948, 23.6430) |
| Luminance | 0.0560 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.22
Darkish Blue
#014182
ΔE00 3.38
Twilight Blue
#0A437A
ΔE00 4.43
Cobalt
#0047AB
ΔE00 5.32
Marine Blue
#01386A
ΔE00 5.38
Prussian Blue
#004577
ΔE00 6.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3F87 #87671F
analogous
#1F7387 #1F3F87 #331F87
triadic
#1F3F87 #871F3F #3F871F
tetradic
#1F3F87 #871F73 #87671F #1F8733
square
#1F3F87 #871F73 #87671F #1F8733
split-complementary
#1F3F87 #87331F #73871F
monochromatic
#081123 #142855 #1F3F87 #2A56B9 #4B76D6
Accessibility & contrast
On white
9.91
#1F3F87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.12
#1F3F87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3F87
9.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3F87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3F87 | 1.00 | 9.91 | 2.12 | 9.91 |
| #FFFFFF | 9.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0F488A
Deuteranopia (green-blind)
#003E86
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #1f3f87; /* rgb */ color: rgb(31, 63, 135); /* oklch */ color: oklch(38.8% 0.127 263.6);
Tailwind
colors: {
custom: {
50: '#6b73aa',
500: '#1f3f87',
950: '#000000',
},
}SCSS
$custom: #1f3f87; $custom-light: #6b73aa; $custom-dark: #000000;
JSON
{
"hex": "#1f3f87",
"rgb": {
"r": 31,
"g": 63,
"b": 135
},
"hsl": {
"h": 221.538,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.38787,
"c": 0.12661,
"h": 263.6
},
"luminance": 0.05596
}Semantic roles & 50–950 ramp
primary
#1F3F87
secondary
#B8964A
accent
#B342E6
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070810
muted
#7A7B7F