#405BB5#405BB5
#405BB5 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.9% C 0.146 H 268.2°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).
Color values
| HEX | #405BB5 |
|---|---|
| RGB | rgb(64, 91, 181) |
| HSL | hsl(226, 48%, 48%) |
| HSV | hsv(226, 65%, 71%) |
| CMYK | cmyk(64.6%, 49.7%, 0%, 29%) |
| CIE-LAB | lab(41.07, 19.28, -50.87) |
| CIE-LCH | lch(41.07, 54.40, 290.76°) |
| OKLab | oklab(49.9% -0.0046 -0.1457) |
| OKLCH | oklch(49.9% 0.146 268.2) |
| XYZ | xyz(14.1931, 11.9071, 45.2574) |
| Luminance | 0.1191 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 4.50
Dusky Blue
#475F94
ΔE00 4.96
Denim Blue
#3B5B92
ΔE00 5.00
Denim
#1560BD
ΔE00 5.26
French Blue
#436BAD
ΔE00 5.97
Warm Blue
#4B57DB
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#405BB5 #B59A40
analogous
#4095B5 #405BB5 #5F40B5
triadic
#405BB5 #B5405B #5BB540
tetradic
#405BB5 #B54095 #B59A40 #40B55F
square
#405BB5 #B54095 #B59A40 #40B55F
split-complementary
#405BB5 #B55F40 #95B540
monochromatic
#202E5B #304488 #405BB5 #687FCA #96A5DA
Accessibility & contrast
On white
6.21
#405BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.38
#405BB5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #405BB5
6.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##405BB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##405BB5 | 1.00 | 6.21 | 3.38 | 6.21 |
| #FFFFFF | 6.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2A66B8
Deuteranopia (green-blind)
#0C5CB3
Tritanopia (blue-blind)
#00707F
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #405bb5; /* rgb */ color: rgb(64, 91, 181); /* oklch */ color: oklch(49.9% 0.146 268.2);
Tailwind
colors: {
custom: {
50: '#8189cc',
500: '#405bb5',
950: '#000000',
},
}SCSS
$custom: #405bb5; $custom-light: #8189cc; $custom-dark: #000000;
JSON
{
"hex": "#405bb5",
"rgb": {
"r": 64,
"g": 91,
"b": 181
},
"hsl": {
"h": 226.154,
"s": 47.755,
"l": 48.039
},
"oklch": {
"l": 0.49899,
"c": 0.14579,
"h": 268.2
},
"luminance": 0.11908
}Semantic roles & 50–950 ramp
primary
#405BB5
secondary
#C5B88B
accent
#B850D7
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82