#1F3D97#1F3D97
#1F3D97 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.7% C 0.152 H 265.7°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3D97 |
|---|---|
| RGB | rgb(31, 61, 151) |
| HSL | hsl(225, 66%, 36%) |
| HSV | hsv(225, 79%, 59%) |
| CMYK | cmyk(79.5%, 59.6%, 0%, 40.8%) |
| CIE-LAB | lab(29.06, 23.21, -52.44) |
| CIE-LCH | lch(29.06, 57.34, 293.88°) |
| OKLab | oklab(39.71% -0.0115 -0.1515) |
| OKLCH | oklch(39.71% 0.152 265.7) |
| XYZ | xyz(7.8178, 5.8623, 29.9917) |
| Luminance | 0.0586 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.82
Cobalt
#0047AB
ΔE00 4.39
Cobalt (survey)
#1E488F
ΔE00 4.58
Darkish Blue
#014182
ΔE00 5.49
Blueberry
#464196
ΔE00 5.65
Twilight Blue
#0A437A
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3D97 #97791F
analogous
#1F7997 #1F3D97 #3D1F97
triadic
#1F3D97 #971F3D #3D971F
tetradic
#1F3D97 #971F79 #97791F #1F973D
square
#1F3D97 #971F79 #97791F #1F973D
split-complementary
#1F3D97 #973D1F #79971F
monochromatic
#0A1431 #152864 #1F3D97 #2952CA #5476DC
Accessibility & contrast
On white
9.67
#1F3D97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#1F3D97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3D97
9.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3D97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3D97 | 1.00 | 9.67 | 2.17 | 9.67 |
| #FFFFFF | 9.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #1f3d97; /* rgb */ color: rgb(31, 61, 151); /* oklch */ color: oklch(39.7% 0.152 265.7);
Tailwind
colors: {
custom: {
50: '#6f72b6',
500: '#1f3d97',
950: '#000000',
},
}SCSS
$custom: #1f3d97; $custom-light: #6f72b6; $custom-dark: #000000;
JSON
{
"hex": "#1f3d97",
"rgb": {
"r": 31,
"g": 61,
"b": 151
},
"hsl": {
"h": 225,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.39709,
"c": 0.15191,
"h": 265.7
},
"luminance": 0.05863
}Semantic roles & 50–950 ramp
primary
#1F3D97
secondary
#BFA452
accent
#BE3FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80