#1F3B97#1F3B97
#1F3B97 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.3% C 0.154 H 266.2°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3B97 |
|---|---|
| RGB | rgb(31, 59, 151) |
| HSL | hsl(226, 66%, 36%) |
| HSV | hsv(226, 79%, 59%) |
| CMYK | cmyk(79.5%, 60.9%, 0%, 40.8%) |
| CIE-LAB | lab(28.52, 24.58, -53.32) |
| CIE-LCH | lch(28.52, 58.71, 294.75°) |
| OKLab | oklab(39.3% -0.0101 -0.1541) |
| OKLCH | oklch(39.3% 0.154 266.2) |
| XYZ | xyz(7.7130, 5.6527, 29.9567) |
| Luminance | 0.0565 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.43
Cobalt
#0047AB
ΔE00 4.93
Cobalt (survey)
#1E488F
ΔE00 5.26
Blueberry
#464196
ΔE00 5.56
Darkish Blue
#014182
ΔE00 5.98
Darkslateblue
#483D8B
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3B97 #977B1F
analogous
#1F7797 #1F3B97 #3F1F97
triadic
#1F3B97 #971F3B #3B971F
tetradic
#1F3B97 #971F77 #977B1F #1F973F
square
#1F3B97 #971F77 #977B1F #1F973F
split-complementary
#1F3B97 #973F1F #77971F
monochromatic
#0A1331 #152764 #1F3B97 #294FCA #5474DC
Accessibility & contrast
On white
9.86
#1F3B97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.13
#1F3B97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3B97
9.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3B97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3B97 | 1.00 | 9.86 | 2.13 | 9.86 |
| #FFFFFF | 9.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#003E95
Tritanopia (blue-blind)
#005263
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #1f3b97; /* rgb */ color: rgb(31, 59, 151); /* oklch */ color: oklch(39.3% 0.154 266.2);
Tailwind
colors: {
custom: {
50: '#6f70b6',
500: '#1f3b97',
950: '#000000',
},
}SCSS
$custom: #1f3b97; $custom-light: #6f70b6; $custom-dark: #000000;
JSON
{
"hex": "#1f3b97",
"rgb": {
"r": 31,
"g": 59,
"b": 151
},
"hsl": {
"h": 226,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.39303,
"c": 0.15444,
"h": 266.2
},
"luminance": 0.05654
}Semantic roles & 50–950 ramp
primary
#1F3B97
secondary
#BFA652
accent
#C13FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80