#1F399E#1F399E
#1F399E is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.6% C 0.166 H 266.9°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).
Color values
| HEX | #1F399E |
|---|---|
| RGB | rgb(31, 57, 158) |
| HSL | hsl(228, 67%, 37%) |
| HSV | hsv(228, 80%, 62%) |
| CMYK | cmyk(80.4%, 63.9%, 0%, 38%) |
| CIE-LAB | lab(28.60, 28.65, -57.45) |
| CIE-LCH | lch(28.60, 64.20, 296.51°) |
| OKLab | oklab(39.56% -0.0089 -0.1662) |
| OKLCH | oklch(39.56% 0.166 266.9) |
| XYZ | xyz(8.1976, 5.6852, 33.0064) |
| Luminance | 0.0569 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.07
Cobalt
#0047AB
ΔE00 5.34
Blueberry
#464196
ΔE00 5.54
Blue Blue
#2242C7
ΔE00 6.03
Cobalt (survey)
#1E488F
ΔE00 6.42
Darkslateblue
#483D8B
ΔE00 6.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F399E #9E841F
analogous
#1F789E #1F399E #451F9E
triadic
#1F399E #9E1F39 #399E1F
tetradic
#1F399E #9E1F78 #9E841F #1F9E45
square
#1F399E #9E1F78 #9E841F #1F9E45
split-complementary
#1F399E #9E451F #789E1F
monochromatic
#0B1438 #15276B #1F399E #294BD1 #5974DE
Accessibility & contrast
On white
9.83
#1F399E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.14
#1F399E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F399E
9.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F399E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F399E | 1.00 | 9.83 | 2.14 | 9.83 |
| #FFFFFF | 9.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004AA1
Deuteranopia (green-blind)
#003E9C
Tritanopia (blue-blind)
#005366
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #1f399e; /* rgb */ color: rgb(31, 57, 158); /* oklch */ color: oklch(39.6% 0.166 266.9);
Tailwind
colors: {
custom: {
50: '#716fbc',
500: '#1f399e',
950: '#000000',
},
}SCSS
$custom: #1f399e; $custom-light: #716fbc; $custom-dark: #000000;
JSON
{
"hex": "#1f399e",
"rgb": {
"r": 31,
"g": 57,
"b": 158
},
"hsl": {
"h": 227.717,
"s": 67.196,
"l": 37.059
},
"oklch": {
"l": 0.39556,
"c": 0.16646,
"h": 266.9
},
"luminance": 0.05686
}Semantic roles & 50–950 ramp
primary
#1F399E
secondary
#C2AC56
accent
#C73EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81