#1F408F#1F408F
#1F408F is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.7% C 0.137 H 264.0°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).
Color values
| HEX | #1F408F |
|---|---|
| RGB | rgb(31, 64, 143) |
| HSL | hsl(222, 64%, 34%) |
| HSV | hsv(222, 78%, 56%) |
| CMYK | cmyk(78.3%, 55.2%, 0%, 43.9%) |
| CIE-LAB | lab(29.26, 17.97, -47.21) |
| CIE-LCH | lch(29.26, 50.51, 290.84°) |
| OKLab | oklab(39.66% -0.0142 -0.1361) |
| OKLCH | oklch(39.66% 0.137 264) |
| XYZ | xyz(7.3546, 5.9404, 26.7403) |
| Luminance | 0.0594 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.02
Darkish Blue
#014182
ΔE00 3.91
Cobalt
#0047AB
ΔE00 4.32
Twilight Blue
#0A437A
ΔE00 5.02
Sapphire (survey)
#2138AB
ΔE00 5.65
Marine Blue
#01386A
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F408F #8F6E1F
analogous
#1F788F #1F408F #361F8F
triadic
#1F408F #8F1F40 #408F1F
tetradic
#1F408F #8F1F78 #8F6E1F #1F8F36
square
#1F408F #8F1F78 #8F6E1F #1F8F36
split-complementary
#1F408F #8F361F #788F1F
monochromatic
#09132A #14295D #1F408F #2A57C1 #4F78D9
Accessibility & contrast
On white
9.60
#1F408F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#1F408F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F408F
9.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F408F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F408F | 1.00 | 9.60 | 2.19 | 9.60 |
| #FFFFFF | 9.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #1f408f; /* rgb */ color: rgb(31, 64, 143); /* oklch */ color: oklch(39.7% 0.137 264.0);
Tailwind
colors: {
custom: {
50: '#6d74b0',
500: '#1f408f',
950: '#000000',
},
}SCSS
$custom: #1f408f; $custom-light: #6d74b0; $custom-dark: #000000;
JSON
{
"hex": "#1f408f",
"rgb": {
"r": 31,
"g": 64,
"b": 143
},
"hsl": {
"h": 222.321,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.39658,
"c": 0.1368,
"h": 264
},
"luminance": 0.05941
}Semantic roles & 50–950 ramp
primary
#1F408F
secondary
#BC9B4E
accent
#B640E7
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080811
muted
#7B7B80