#1F408A#1F408A
#1F408A is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.3% C 0.130 H 263.5°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).
Color values
| HEX | #1F408A |
|---|---|
| RGB | rgb(31, 64, 138) |
| HSL | hsl(221, 63%, 33%) |
| HSV | hsv(221, 78%, 54%) |
| CMYK | cmyk(77.5%, 53.6%, 0%, 45.9%) |
| CIE-LAB | lab(28.88, 15.97, -44.74) |
| CIE-LCH | lch(28.88, 47.50, 289.64°) |
| OKLab | oklab(39.25% -0.0147 -0.1288) |
| OKLCH | oklch(39.25% 0.13 263.5) |
| XYZ | xyz(6.9843, 5.7923, 24.7898) |
| Luminance | 0.0579 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.87
Darkish Blue
#014182
ΔE00 3.40
Twilight Blue
#0A437A
ΔE00 4.47
Cobalt
#0047AB
ΔE00 4.84
Marine Blue
#01386A
ΔE00 5.72
Prussian Blue
#004577
ΔE00 6.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F408A #8A691F
analogous
#1F758A #1F408A #331F8A
triadic
#1F408A #8A1F40 #408A1F
tetradic
#1F408A #8A1F75 #8A691F #1F8A33
square
#1F408A #8A1F75 #8A691F #1F8A33
split-complementary
#1F408A #8A331F #758A1F
monochromatic
#091226 #142958 #1F408A #2A57BC #4C77D7
Accessibility & contrast
On white
9.73
#1F408A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#1F408A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F408A
9.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F408A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F408A | 1.00 | 9.73 | 2.16 | 9.73 |
| #FFFFFF | 9.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0D498D
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#00525E
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #1f408a; /* rgb */ color: rgb(31, 64, 138); /* oklch */ color: oklch(39.3% 0.130 263.5);
Tailwind
colors: {
custom: {
50: '#6b74ad',
500: '#1f408a',
950: '#000000',
},
}SCSS
$custom: #1f408a; $custom-light: #6b74ad; $custom-dark: #000000;
JSON
{
"hex": "#1f408a",
"rgb": {
"r": 31,
"g": 64,
"b": 138
},
"hsl": {
"h": 221.495,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.3925,
"c": 0.12964,
"h": 263.5
},
"luminance": 0.05793
}Semantic roles & 50–950 ramp
primary
#1F408A
secondary
#BA984B
accent
#B341E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F