#405AC7#405AC7
#405AC7 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.0% C 0.172 H 269.3°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).
Color values
| HEX | #405AC7 |
|---|---|
| RGB | rgb(64, 90, 199) |
| HSL | hsl(228, 55%, 52%) |
| HSV | hsv(228, 68%, 78%) |
| CMYK | cmyk(67.8%, 54.8%, 0%, 22%) |
| CIE-LAB | lab(42.04, 26.35, -59.79) |
| CIE-LCH | lch(42.04, 65.34, 293.79°) |
| OKLab | oklab(51.03% -0.0021 -0.172) |
| OKLCH | oklch(51.03% 0.172 269.3) |
| XYZ | xyz(16.0758, 12.5243, 55.5920) |
| Luminance | 0.1253 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 3.68
Azul
#1D5DEC
ΔE00 4.72
Sapphire
#0F52BA
ΔE00 5.14
Iris
#6258C4
ΔE00 5.83
Royal Blue
#4169E1
ΔE00 6.04
Denim
#1560BD
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#405AC7 #C7AD40
analogous
#409EC7 #405AC7 #6A40C7
triadic
#405AC7 #C7405A #5AC740
tetradic
#405AC7 #C7409E #C7AD40 #40C76A
square
#405AC7 #C7409E #C7AD40 #40C76A
split-complementary
#405AC7 #C76A40 #9EC740
monochromatic
#202F6D #2E439C #405AC7 #6F83D5 #9FACE3
Accessibility & contrast
On white
5.99
#405AC7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.51
#405AC7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #405AC7
5.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##405AC7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##405AC7 | 1.00 | 5.99 | 3.51 | 5.99 |
| #FFFFFF | 5.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006ACB
Deuteranopia (green-blind)
#005DC5
Tritanopia (blue-blind)
#007488
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #405ac7; /* rgb */ color: rgb(64, 90, 199); /* oklch */ color: oklch(51.0% 0.172 269.3);
Tailwind
colors: {
custom: {
50: '#8488d9',
500: '#405ac7',
950: '#000000',
},
}SCSS
$custom: #405ac7; $custom-light: #8488d9; $custom-dark: #000000;
JSON
{
"hex": "#405ac7",
"rgb": {
"r": 64,
"g": 90,
"b": 199
},
"hsl": {
"h": 228.444,
"s": 54.656,
"l": 51.569
},
"oklch": {
"l": 0.51026,
"c": 0.172,
"h": 269.3
},
"luminance": 0.12526
}Semantic roles & 50–950 ramp
primary
#405AC7
secondary
#CFC494
accent
#C14ADE
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83