#405DC7#405DC7
#405DC7 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.6% C 0.168 H 268.4°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).
Color values
| HEX | #405DC7 |
|---|---|
| RGB | rgb(64, 93, 199) |
| HSL | hsl(227, 55%, 52%) |
| HSV | hsv(227, 68%, 78%) |
| CMYK | cmyk(67.8%, 53.3%, 0%, 22%) |
| CIE-LAB | lab(42.82, 24.43, -58.51) |
| CIE-LCH | lch(42.82, 63.41, 292.66°) |
| OKLab | oklab(51.62% -0.0047 -0.1682) |
| OKLCH | oklch(51.62% 0.168 268.4) |
| XYZ | xyz(16.3340, 13.0406, 55.6780) |
| Luminance | 0.1304 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 4.22
Azul
#1D5DEC
ΔE00 4.48
Royal Blue
#4169E1
ΔE00 5.24
Sapphire
#0F52BA
ΔE00 5.42
Denim
#1560BD
ΔE00 5.55
French Blue
#436BAD
ΔE00 6.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#405DC7 #C7AA40
analogous
#40A1C7 #405DC7 #6740C7
triadic
#405DC7 #C7405D #5DC740
tetradic
#405DC7 #C740A1 #C7AA40 #40C767
square
#405DC7 #C740A1 #C7AA40 #40C767
split-complementary
#405DC7 #C76740 #A1C740
monochromatic
#20306D #2E459C #405DC7 #6F85D5 #9FADE3
Accessibility & contrast
On white
5.82
#405DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.61
#405DC7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #405DC7
5.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##405DC7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##405DC7 | 1.00 | 5.82 | 3.61 | 5.82 |
| #FFFFFF | 5.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#126CCB
Deuteranopia (green-blind)
#005FC5
Tritanopia (blue-blind)
#007689
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #405dc7; /* rgb */ color: rgb(64, 93, 199); /* oklch */ color: oklch(51.6% 0.168 268.4);
Tailwind
colors: {
custom: {
50: '#848ad9',
500: '#405dc7',
950: '#000000',
},
}SCSS
$custom: #405dc7; $custom-light: #848ad9; $custom-dark: #000000;
JSON
{
"hex": "#405dc7",
"rgb": {
"r": 64,
"g": 93,
"b": 199
},
"hsl": {
"h": 227.111,
"s": 54.656,
"l": 51.569
},
"oklch": {
"l": 0.51618,
"c": 0.16826,
"h": 268.4
},
"luminance": 0.13042
}Semantic roles & 50–950 ramp
primary
#405DC7
secondary
#CFC294
accent
#BE4ADE
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B15
muted
#7D7C83