#405FB2#405FB2
#405FB2 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.5% C 0.136 H 266.2°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).
Color values
| HEX | #405FB2 |
|---|---|
| RGB | rgb(64, 95, 178) |
| HSL | hsl(224, 47%, 47%) |
| HSV | hsv(224, 64%, 70%) |
| CMYK | cmyk(64%, 46.6%, 0%, 30.2%) |
| CIE-LAB | lab(41.98, 15.64, -47.64) |
| CIE-LCH | lch(41.98, 50.14, 288.18°) |
| OKLab | oklab(50.53% -0.009 -0.1362) |
| OKLCH | oklch(50.53% 0.136 266.2) |
| XYZ | xyz(14.2397, 12.4875, 43.7708) |
| Luminance | 0.1249 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dusky Blue
#475F94
ΔE00 4.29
Denim
#1560BD
ΔE00 4.38
French Blue
#436BAD
ΔE00 4.45
Denim Blue
#3B5B92
ΔE00 4.49
Sapphire
#0F52BA
ΔE00 5.16
Denim (survey)
#3B638C
ΔE00 5.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#405FB2 #B29340
analogous
#4098B2 #405FB2 #5A40B2
triadic
#405FB2 #B2405F #5FB240
tetradic
#405FB2 #B24098 #B29340 #40B25A
square
#405FB2 #B24098 #B29340 #40B25A
split-complementary
#405FB2 #B25A40 #98B240
monochromatic
#202F58 #304785 #405FB2 #6781C8 #94A7D8
Accessibility & contrast
On white
6.00
#405FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.50
#405FB2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #405FB2
6.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##405FB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##405FB2 | 1.00 | 6.00 | 3.50 | 6.00 |
| #FFFFFF | 6.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3669B5
Deuteranopia (green-blind)
#225EB0
Tritanopia (blue-blind)
#007280
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #405fb2; /* rgb */ color: rgb(64, 95, 178); /* oklch */ color: oklch(50.5% 0.136 266.2);
Tailwind
colors: {
custom: {
50: '#808cc9',
500: '#405fb2',
950: '#000000',
},
}SCSS
$custom: #405fb2; $custom-light: #808cc9; $custom-dark: #000000;
JSON
{
"hex": "#405fb2",
"rgb": {
"r": 64,
"g": 95,
"b": 178
},
"hsl": {
"h": 223.684,
"s": 47.107,
"l": 47.451
},
"oklch": {
"l": 0.50533,
"c": 0.13648,
"h": 266.2
},
"luminance": 0.12489
}Semantic roles & 50–950 ramp
primary
#405FB2
secondary
#C4B48A
accent
#B251D7
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0C13
muted
#7C7D82