#1F408D#1F408D
#1F408D is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.5% C 0.134 H 263.8°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).
Color values
| HEX | #1F408D |
|---|---|
| RGB | rgb(31, 64, 141) |
| HSL | hsl(222, 64%, 34%) |
| HSV | hsv(222, 78%, 55%) |
| CMYK | cmyk(78%, 54.6%, 0%, 44.7%) |
| CIE-LAB | lab(29.11, 17.17, -46.23) |
| CIE-LCH | lch(29.11, 49.31, 290.38°) |
| OKLab | oklab(39.49% -0.0144 -0.1332) |
| OKLCH | oklch(39.49% 0.134 263.8) |
| XYZ | xyz(7.2045, 5.8804, 25.9495) |
| Luminance | 0.0588 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.94
Darkish Blue
#014182
ΔE00 3.70
Cobalt
#0047AB
ΔE00 4.52
Twilight Blue
#0A437A
ΔE00 4.80
Sapphire (survey)
#2138AB
ΔE00 5.94
Marine Blue
#01386A
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F408D #8D6C1F
analogous
#1F778D #1F408D #351F8D
triadic
#1F408D #8D1F40 #408D1F
tetradic
#1F408D #8D1F77 #8D6C1F #1F8D35
square
#1F408D #8D1F77 #8D6C1F #1F8D35
split-complementary
#1F408D #8D351F #778D1F
monochromatic
#091229 #14295B #1F408D #2A57BF #4E78D8
Accessibility & contrast
On white
9.65
#1F408D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#1F408D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F408D
9.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F408D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F408D | 1.00 | 9.65 | 2.18 | 9.65 |
| #FFFFFF | 9.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#054A90
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #1f408d; /* rgb */ color: rgb(31, 64, 141); /* oklch */ color: oklch(39.5% 0.134 263.8);
Tailwind
colors: {
custom: {
50: '#6c74af',
500: '#1f408d',
950: '#000000',
},
}SCSS
$custom: #1f408d; $custom-light: #6c74af; $custom-dark: #000000;
JSON
{
"hex": "#1f408d",
"rgb": {
"r": 31,
"g": 64,
"b": 141
},
"hsl": {
"h": 222,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.39493,
"c": 0.13394,
"h": 263.8
},
"luminance": 0.05881
}Semantic roles & 50–950 ramp
primary
#1F408D
secondary
#BB9A4D
accent
#B541E7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F