#1F3E97#1F3E97
#1F3E97 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.9% C 0.151 H 265.4°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3E97 |
|---|---|
| RGB | rgb(31, 62, 151) |
| HSL | hsl(225, 66%, 36%) |
| HSV | hsv(225, 79%, 59%) |
| CMYK | cmyk(79.5%, 58.9%, 0%, 40.8%) |
| CIE-LAB | lab(29.34, 22.53, -51.99) |
| CIE-LCH | lch(29.34, 56.66, 293.43°) |
| OKLab | oklab(39.92% -0.0122 -0.1501) |
| OKLCH | oklch(39.92% 0.151 265.4) |
| XYZ | xyz(7.8716, 5.9700, 30.0096) |
| Luminance | 0.0597 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.05
Cobalt
#0047AB
ΔE00 4.13
Cobalt (survey)
#1E488F
ΔE00 4.24
Darkish Blue
#014182
ΔE00 5.26
Blueberry
#464196
ΔE00 5.73
Twilight Blue
#0A437A
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3E97 #97781F
analogous
#1F7A97 #1F3E97 #3C1F97
triadic
#1F3E97 #971F3E #3E971F
tetradic
#1F3E97 #971F7A #97781F #1F973C
square
#1F3E97 #971F7A #97781F #1F973C
split-complementary
#1F3E97 #973C1F #7A971F
monochromatic
#0A1431 #152964 #1F3E97 #2953CA #5477DC
Accessibility & contrast
On white
9.57
#1F3E97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#1F3E97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3E97
9.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3E97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3E97 | 1.00 | 9.57 | 2.19 | 9.57 |
| #FFFFFF | 9.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #1f3e97; /* rgb */ color: rgb(31, 62, 151); /* oklch */ color: oklch(39.9% 0.151 265.4);
Tailwind
colors: {
custom: {
50: '#6f72b6',
500: '#1f3e97',
950: '#000000',
},
}SCSS
$custom: #1f3e97; $custom-light: #6f72b6; $custom-dark: #000000;
JSON
{
"hex": "#1f3e97",
"rgb": {
"r": 31,
"g": 62,
"b": 151
},
"hsl": {
"h": 224.5,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.39915,
"c": 0.15064,
"h": 265.4
},
"luminance": 0.05971
}Semantic roles & 50–950 ramp
primary
#1F3E97
secondary
#BFA352
accent
#BD3FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080811
muted
#7B7B80