#405CB5#405CB5
#405CB5 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.1% C 0.145 H 267.8°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).
Color values
| HEX | #405CB5 |
|---|---|
| RGB | rgb(64, 92, 181) |
| HSL | hsl(226, 48%, 48%) |
| HSV | hsv(226, 65%, 71%) |
| CMYK | cmyk(64.6%, 49.2%, 0%, 29%) |
| CIE-LAB | lab(41.34, 18.64, -50.43) |
| CIE-LCH | lch(41.34, 53.76, 290.29°) |
| OKLab | oklab(50.11% -0.0056 -0.1444) |
| OKLCH | oklch(50.11% 0.145 267.8) |
| XYZ | xyz(14.2791, 12.0792, 45.2861) |
| Luminance | 0.1208 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 4.63
Dusky Blue
#475F94
ΔE00 4.85
Denim Blue
#3B5B92
ΔE00 4.93
Denim
#1560BD
ΔE00 5.03
French Blue
#436BAD
ΔE00 5.61
Warm Blue
#4B57DB
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#405CB5 #B59940
analogous
#4096B5 #405CB5 #5E40B5
triadic
#405CB5 #B5405C #5CB540
tetradic
#405CB5 #B54096 #B59940 #40B55E
square
#405CB5 #B54096 #B59940 #40B55E
split-complementary
#405CB5 #B55E40 #96B540
monochromatic
#202E5B #304588 #405CB5 #6880CA #96A6DA
Accessibility & contrast
On white
6.15
#405CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.42
#405CB5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #405CB5
6.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##405CB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##405CB5 | 1.00 | 6.15 | 3.42 | 6.15 |
| #FFFFFF | 6.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2D67B8
Deuteranopia (green-blind)
#115DB3
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #405cb5; /* rgb */ color: rgb(64, 92, 181); /* oklch */ color: oklch(50.1% 0.145 267.8);
Tailwind
colors: {
custom: {
50: '#8189cc',
500: '#405cb5',
950: '#000000',
},
}SCSS
$custom: #405cb5; $custom-light: #8189cc; $custom-dark: #000000;
JSON
{
"hex": "#405cb5",
"rgb": {
"r": 64,
"g": 92,
"b": 181
},
"hsl": {
"h": 225.641,
"s": 47.755,
"l": 48.039
},
"oklch": {
"l": 0.50107,
"c": 0.14453,
"h": 267.8
},
"luminance": 0.1208
}Semantic roles & 50–950 ramp
primary
#405CB5
secondary
#C5B78B
accent
#B750D7
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B13
muted
#7C7C82