#1F398B#1F398B
#1F398B is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.8% C 0.140 H 266.3°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).
Color values
| HEX | #1F398B |
|---|---|
| RGB | rgb(31, 57, 139) |
| HSL | hsl(226, 64%, 33%) |
| HSV | hsv(226, 78%, 55%) |
| CMYK | cmyk(77.7%, 59%, 0%, 45.5%) |
| CIE-LAB | lab(26.96, 21.22, -48.47) |
| CIE-LCH | lch(26.96, 52.91, 293.64°) |
| OKLab | oklab(37.83% -0.0091 -0.1399) |
| OKLCH | oklch(37.83% 0.14 266.3) |
| XYZ | xyz(6.6868, 5.0809, 25.0494) |
| Luminance | 0.0508 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.02
Cobalt (survey)
#1E488F
ΔE00 5.37
Darkish Blue
#014182
ΔE00 5.42
Blueberry
#464196
ΔE00 6.06
Cobalt
#0047AB
ΔE00 6.15
Marine Blue
#01386A
ΔE00 6.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F398B #8B711F
analogous
#1F6F8B #1F398B #3B1F8B
triadic
#1F398B #8B1F39 #398B1F
tetradic
#1F398B #8B1F6F #8B711F #1F8B3B
square
#1F398B #8B1F6F #8B711F #1F8B3B
split-complementary
#1F398B #8B3B1F #6F8B1F
monochromatic
#091027 #142459 #1F398B #2A4EBD #4D6ED7
Accessibility & contrast
On white
10.41
#1F398B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.02
#1F398B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F398B
10.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F398B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F398B | 1.00 | 10.41 | 2.02 | 10.41 |
| #FFFFFF | 10.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #1f398b; /* rgb */ color: rgb(31, 57, 139); /* oklch */ color: oklch(37.8% 0.140 266.3);
Tailwind
colors: {
custom: {
50: '#6c6fae',
500: '#1f398b',
950: '#000000',
},
}SCSS
$custom: #1f398b; $custom-light: #6c6fae; $custom-dark: #000000;
JSON
{
"hex": "#1f398b",
"rgb": {
"r": 31,
"g": 57,
"b": 139
},
"hsl": {
"h": 225.556,
"s": 63.529,
"l": 33.333
},
"oklch": {
"l": 0.37827,
"c": 0.1402,
"h": 266.3
},
"luminance": 0.05082
}Semantic roles & 50–950 ramp
primary
#1F398B
secondary
#BAA04C
accent
#BF41E7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F