#1F408C#1F408C
#1F408C is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.4% C 0.133 H 263.7°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).
Color values
| HEX | #1F408C |
|---|---|
| RGB | rgb(31, 64, 140) |
| HSL | hsl(222, 64%, 34%) |
| HSV | hsv(222, 78%, 55%) |
| CMYK | cmyk(77.9%, 54.3%, 0%, 45.1%) |
| CIE-LAB | lab(29.03, 16.77, -45.73) |
| CIE-LCH | lch(29.03, 48.71, 290.14°) |
| OKLab | oklab(39.41% -0.0145 -0.1317) |
| OKLCH | oklch(39.41% 0.133 263.7) |
| XYZ | xyz(7.1304, 5.8507, 25.5594) |
| Luminance | 0.0585 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.91
Darkish Blue
#014182
ΔE00 3.60
Cobalt
#0047AB
ΔE00 4.62
Twilight Blue
#0A437A
ΔE00 4.69
Marine Blue
#01386A
ΔE00 5.97
Sapphire (survey)
#2138AB
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F408C #8C6B1F
analogous
#1F768C #1F408C #341F8C
triadic
#1F408C #8C1F40 #408C1F
tetradic
#1F408C #8C1F76 #8C6B1F #1F8C34
square
#1F408C #8C1F76 #8C6B1F #1F8C34
split-complementary
#1F408C #8C341F #768C1F
monochromatic
#091228 #14295A #1F408C #2A57BE #4E77D8
Accessibility & contrast
On white
9.68
#1F408C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#1F408C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F408C
9.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F408C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F408C | 1.00 | 9.68 | 2.17 | 9.68 |
| #FFFFFF | 9.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#084A8F
Deuteranopia (green-blind)
#00408A
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #1f408c; /* rgb */ color: rgb(31, 64, 140); /* oklch */ color: oklch(39.4% 0.133 263.7);
Tailwind
colors: {
custom: {
50: '#6c74ae',
500: '#1f408c',
950: '#000000',
},
}SCSS
$custom: #1f408c; $custom-light: #6c74ae; $custom-dark: #000000;
JSON
{
"hex": "#1f408c",
"rgb": {
"r": 31,
"g": 64,
"b": 140
},
"hsl": {
"h": 221.835,
"s": 63.743,
"l": 33.529
},
"oklch": {
"l": 0.39412,
"c": 0.13251,
"h": 263.7
},
"luminance": 0.05852
}Semantic roles & 50–950 ramp
primary
#1F408C
secondary
#BB994C
accent
#B541E7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F