#405ED5#405ED5
#405ED5 is a mid, vivid blue. Relative luminance 0.139; OKLCH L 52.9% C 0.186 H 268.5°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).
Color values
| HEX | #405ED5 |
|---|---|
| RGB | rgb(64, 94, 213) |
| HSL | hsl(228, 64%, 54%) |
| HSV | hsv(228, 70%, 84%) |
| CMYK | cmyk(70%, 55.9%, 0%, 16.5%) |
| CIE-LAB | lab(44.09, 28.79, -64.52) |
| CIE-LCH | lch(44.09, 70.65, 294.05°) |
| OKLab | oklab(52.88% -0.0047 -0.1858) |
| OKLCH | oklch(52.88% 0.186 268.5) |
| XYZ | xyz(18.1232, 13.8977, 64.6653) |
| Luminance | 0.1390 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Azul
#1D5DEC
ΔE00 3.01
Warm Blue
#4B57DB
ΔE00 3.21
Royal Blue
#4169E1
ΔE00 4.04
Bright Blue
#0165FC
ΔE00 5.42
Electric Blue
#0652FF
ΔE00 5.64
Dark Periwinkle
#665FD1
ΔE00 5.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#405ED5 #D5B740
analogous
#40A9D5 #405ED5 #6C40D5
triadic
#405ED5 #D5405E #5ED540
tetradic
#405ED5 #D540A9 #D5B740 #40D56C
square
#405ED5 #D540A9 #D5B740 #40D56C
split-complementary
#405ED5 #D56C40 #A9D540
monochromatic
#1C307F #2743B1 #405ED5 #7288E0 #A4B3EB
Accessibility & contrast
On white
5.56
#405ED5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.78
#405ED5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #405ED5
5.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##405ED5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##405ED5 | 1.00 | 5.56 | 3.78 | 5.56 |
| #FFFFFF | 5.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006FD9
Deuteranopia (green-blind)
#0062D3
Tritanopia (blue-blind)
#007B90
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #405ed5; /* rgb */ color: rgb(64, 94, 213); /* oklch */ color: oklch(52.9% 0.186 268.5);
Tailwind
colors: {
custom: {
50: '#878be3',
500: '#405ed5',
950: '#000000',
},
}SCSS
$custom: #405ed5; $custom-light: #878be3; $custom-dark: #000000;
JSON
{
"hex": "#405ed5",
"rgb": {
"r": 64,
"g": 94,
"b": 213
},
"hsl": {
"h": 227.919,
"s": 63.948,
"l": 54.314
},
"oklch": {
"l": 0.52884,
"c": 0.1859,
"h": 268.5
},
"luminance": 0.13899
}Semantic roles & 50–950 ramp
primary
#405ED5
secondary
#D8CB99
accent
#C641E7
background
#F9F8FE
surface
#F1F0FC
border
#CBCBD5
text
#0D0B15
muted
#7E7C84