#405CA7#405CA7
#405CA7 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.2% C 0.125 H 266.5°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).
Color values
| HEX | #405CA7 |
|---|---|
| RGB | rgb(64, 92, 167) |
| HSL | hsl(224, 45%, 45%) |
| HSV | hsv(224, 62%, 65%) |
| CMYK | cmyk(61.7%, 44.9%, 0%, 34.5%) |
| CIE-LAB | lab(40.46, 13.67, -43.58) |
| CIE-LCH | lch(40.46, 45.67, 287.41°) |
| OKLab | oklab(49.15% -0.0076 -0.1243) |
| OKLCH | oklch(49.15% 0.125 266.5) |
| XYZ | xyz(12.9142, 11.5332, 38.0973) |
| Luminance | 0.1153 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dusky Blue
#475F94
ΔE00 3.13
Denim Blue
#3B5B92
ΔE00 3.13
Sapphire
#0F52BA
ΔE00 5.02
Denim
#1560BD
ΔE00 5.20
French Blue
#436BAD
ΔE00 5.44
Denim (survey)
#3B638C
ΔE00 5.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#405CA7 #A78B40
analogous
#4090A7 #405CA7 #5740A7
triadic
#405CA7 #A7405C #5CA740
tetradic
#405CA7 #A74090 #A78B40 #40A757
square
#405CA7 #A74090 #A78B40 #40A757
split-complementary
#405CA7 #A75740 #90A740
monochromatic
#1E2B4F #2F447B #405CA7 #627CC3 #8EA1D4
Accessibility & contrast
On white
6.35
#405CA7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.31
#405CA7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #405CA7
6.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##405CA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##405CA7 | 1.00 | 6.35 | 3.31 | 6.35 |
| #FFFFFF | 6.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3964AA
Deuteranopia (green-blind)
#2A5BA5
Tritanopia (blue-blind)
#006D79
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #405ca7; /* rgb */ color: rgb(64, 92, 167); /* oklch */ color: oklch(49.2% 0.125 266.5);
Tailwind
colors: {
custom: {
50: '#7e89c1',
500: '#405ca7',
950: '#000000',
},
}SCSS
$custom: #405ca7; $custom-light: #7e89c1; $custom-dark: #000000;
JSON
{
"hex": "#405ca7",
"rgb": {
"r": 64,
"g": 92,
"b": 167
},
"hsl": {
"h": 223.689,
"s": 44.589,
"l": 45.294
},
"oklch": {
"l": 0.49154,
"c": 0.12452,
"h": 266.5
},
"luminance": 0.11534
}Semantic roles & 50–950 ramp
primary
#405CA7
secondary
#BFAF84
accent
#B154D4
background
#F8F8FB
surface
#EFF0F7
border
#CACBD0
text
#0B0B12
muted
#7C7C81