#405DC5#405DC5
#405DC5 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.5% C 0.166 H 268.3°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).
Color values
| HEX | #405DC5 |
|---|---|
| RGB | rgb(64, 93, 197) |
| HSL | hsl(227, 53%, 51%) |
| HSV | hsv(227, 68%, 77%) |
| CMYK | cmyk(67.5%, 52.8%, 0%, 22.7%) |
| CIE-LAB | lab(42.69, 23.72, -57.58) |
| CIE-LCH | lch(42.69, 62.27, 292.39°) |
| OKLab | oklab(51.47% -0.0049 -0.1655) |
| OKLCH | oklch(51.47% 0.166 268.3) |
| XYZ | xyz(16.1033, 12.9484, 54.4631) |
| Luminance | 0.1295 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 4.45
Azul
#1D5DEC
ΔE00 4.71
Sapphire
#0F52BA
ΔE00 5.29
Royal Blue
#4169E1
ΔE00 5.40
Denim
#1560BD
ΔE00 5.42
French Blue
#436BAD
ΔE00 6.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#405DC5 #C5A840
analogous
#409FC5 #405DC5 #6540C5
triadic
#405DC5 #C5405D #5DC540
tetradic
#405DC5 #C5409F #C5A840 #40C565
square
#405DC5 #C5409F #C5A840 #40C565
split-complementary
#405DC5 #C56540 #9FC540
monochromatic
#20306A #2F4699 #405DC5 #6F85D3 #9EADE2
Accessibility & contrast
On white
5.85
#405DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.59
#405DC5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #405DC5
5.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##405DC5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##405DC5 | 1.00 | 5.85 | 3.59 | 5.85 |
| #FFFFFF | 5.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#176BC9
Deuteranopia (green-blind)
#005FC3
Tritanopia (blue-blind)
#007688
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #405dc5; /* rgb */ color: rgb(64, 93, 197); /* oklch */ color: oklch(51.5% 0.166 268.3);
Tailwind
colors: {
custom: {
50: '#848ad7',
500: '#405dc5',
950: '#000000',
},
}SCSS
$custom: #405dc5; $custom-light: #848ad7; $custom-dark: #000000;
JSON
{
"hex": "#405dc5",
"rgb": {
"r": 64,
"g": 93,
"b": 197
},
"hsl": {
"h": 226.917,
"s": 53.414,
"l": 51.176
},
"oklch": {
"l": 0.51469,
"c": 0.16552,
"h": 268.3
},
"luminance": 0.1295
}Semantic roles & 50–950 ramp
primary
#405DC5
secondary
#CEC193
accent
#BD4BDD
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B14
muted
#7D7C83