#405BB7#405BB7
#405BB7 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.0% C 0.149 H 268.3°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).
Color values
| HEX | #405BB7 |
|---|---|
| RGB | rgb(64, 91, 183) |
| HSL | hsl(226, 48%, 48%) |
| HSV | hsv(226, 65%, 72%) |
| CMYK | cmyk(65%, 50.3%, 0%, 28.2%) |
| CIE-LAB | lab(41.20, 20.00, -51.83) |
| CIE-LCH | lch(41.20, 55.55, 291.10°) |
| OKLab | oklab(50.04% -0.0044 -0.1485) |
| OKLCH | oklch(50.04% 0.149 268.3) |
| XYZ | xyz(14.3998, 11.9897, 46.3460) |
| Luminance | 0.1199 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 4.51
Dusky Blue
#475F94
ΔE00 5.21
Denim Blue
#3B5B92
ΔE00 5.26
Denim
#1560BD
ΔE00 5.29
Warm Blue
#4B57DB
ΔE00 5.86
French Blue
#436BAD
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#405BB7 #B79C40
analogous
#4096B7 #405BB7 #6140B7
triadic
#405BB7 #B7405B #5BB740
tetradic
#405BB7 #B74096 #B79C40 #40B761
square
#405BB7 #B74096 #B79C40 #40B761
split-complementary
#405BB7 #B76140 #96B740
monochromatic
#202E5C #30448A #405BB7 #6980CB #97A6DB
Accessibility & contrast
On white
6.18
#405BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.40
#405BB7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #405BB7
6.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##405BB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##405BB7 | 1.00 | 6.18 | 3.40 | 6.18 |
| #FFFFFF | 6.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2867BA
Deuteranopia (green-blind)
#035CB5
Tritanopia (blue-blind)
#007080
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #405bb7; /* rgb */ color: rgb(64, 91, 183); /* oklch */ color: oklch(50.0% 0.149 268.3);
Tailwind
colors: {
custom: {
50: '#8189cd',
500: '#405bb7',
950: '#000000',
},
}SCSS
$custom: #405bb7; $custom-light: #8189cd; $custom-dark: #000000;
JSON
{
"hex": "#405bb7",
"rgb": {
"r": 64,
"g": 91,
"b": 183
},
"hsl": {
"h": 226.387,
"s": 48.178,
"l": 48.431
},
"oklch": {
"l": 0.50041,
"c": 0.14861,
"h": 268.3
},
"luminance": 0.11991
}Semantic roles & 50–950 ramp
primary
#405BB7
secondary
#C6B98D
accent
#B950D8
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0B0B13
muted
#7C7C82