#1F398E#1F398E
#1F398E is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.1% C 0.144 H 266.4°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).
Color values
| HEX | #1F398E |
|---|---|
| RGB | rgb(31, 57, 142) |
| HSL | hsl(226, 64%, 34%) |
| HSV | hsv(226, 78%, 56%) |
| CMYK | cmyk(78.2%, 59.9%, 0%, 44.3%) |
| CIE-LAB | lab(27.21, 22.41, -49.92) |
| CIE-LCH | lch(27.21, 54.72, 294.17°) |
| OKLab | oklab(38.09% -0.009 -0.1442) |
| OKLCH | oklch(38.09% 0.144 266.4) |
| XYZ | xyz(6.9090, 5.1698, 26.2197) |
| Luminance | 0.0517 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.55
Cobalt (survey)
#1E488F
ΔE00 5.47
Darkish Blue
#014182
ΔE00 5.67
Blueberry
#464196
ΔE00 5.88
Cobalt
#0047AB
ΔE00 5.94
Darkslateblue
#483D8B
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F398E #8E741F
analogous
#1F718E #1F398E #3D1F8E
triadic
#1F398E #8E1F39 #398E1F
tetradic
#1F398E #8E1F71 #8E741F #1F8E3D
square
#1F398E #8E1F71 #8E741F #1F8E3D
split-complementary
#1F398E #8E3D1F #718E1F
monochromatic
#09112A #14255C #1F398E #2A4DC0 #4F6FD9
Accessibility & contrast
On white
10.32
#1F398E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#1F398E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F398E
10.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F398E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F398E | 1.00 | 10.32 | 2.03 | 10.32 |
| #FFFFFF | 10.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #1f398e; /* rgb */ color: rgb(31, 57, 142); /* oklch */ color: oklch(38.1% 0.144 266.4);
Tailwind
colors: {
custom: {
50: '#6d6fb0',
500: '#1f398e',
950: '#000000',
},
}SCSS
$custom: #1f398e; $custom-light: #6d6fb0; $custom-dark: #000000;
JSON
{
"hex": "#1f398e",
"rgb": {
"r": 31,
"g": 57,
"b": 142
},
"hsl": {
"h": 225.946,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.38091,
"c": 0.14444,
"h": 266.4
},
"luminance": 0.05171
}Semantic roles & 50–950 ramp
primary
#1F398E
secondary
#BBA24D
accent
#C041E7
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F