#1F408E#1F408E
#1F408E is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.6% C 0.135 H 263.9°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).
Color values
| HEX | #1F408E |
|---|---|
| RGB | rgb(31, 64, 142) |
| HSL | hsl(222, 64%, 34%) |
| HSV | hsv(222, 78%, 56%) |
| CMYK | cmyk(78.2%, 54.9%, 0%, 44.3%) |
| CIE-LAB | lab(29.18, 17.57, -46.72) |
| CIE-LCH | lch(29.18, 49.91, 290.61°) |
| OKLab | oklab(39.57% -0.0143 -0.1346) |
| OKLCH | oklch(39.57% 0.135 263.9) |
| XYZ | xyz(7.2792, 5.9103, 26.3431) |
| Luminance | 0.0591 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.97
Darkish Blue
#014182
ΔE00 3.80
Cobalt
#0047AB
ΔE00 4.42
Twilight Blue
#0A437A
ΔE00 4.91
Sapphire (survey)
#2138AB
ΔE00 5.80
Marine Blue
#01386A
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F408E #8E6D1F
analogous
#1F788E #1F408E #361F8E
triadic
#1F408E #8E1F40 #408E1F
tetradic
#1F408E #8E1F78 #8E6D1F #1F8E36
square
#1F408E #8E1F78 #8E6D1F #1F8E36
split-complementary
#1F408E #8E361F #788E1F
monochromatic
#09132A #14295C #1F408E #2A57C0 #4F78D9
Accessibility & contrast
On white
9.62
#1F408E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#1F408E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F408E
9.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F408E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F408E | 1.00 | 9.62 | 2.18 | 9.62 |
| #FFFFFF | 9.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#024A91
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #1f408e; /* rgb */ color: rgb(31, 64, 142); /* oklch */ color: oklch(39.6% 0.135 263.9);
Tailwind
colors: {
custom: {
50: '#6c74b0',
500: '#1f408e',
950: '#000000',
},
}SCSS
$custom: #1f408e; $custom-light: #6c74b0; $custom-dark: #000000;
JSON
{
"hex": "#1f408e",
"rgb": {
"r": 31,
"g": 64,
"b": 142
},
"hsl": {
"h": 222.162,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.39575,
"c": 0.13538,
"h": 263.9
},
"luminance": 0.05911
}Semantic roles & 50–950 ramp
primary
#1F408E
secondary
#BB9B4D
accent
#B641E7
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080810
muted
#7B7B7F