#405AB2#405AB2
#405AB2 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.5% C 0.143 H 268.4°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).
Color values
| HEX | #405AB2 |
|---|---|
| RGB | rgb(64, 90, 178) |
| HSL | hsl(226, 47%, 47%) |
| HSV | hsv(226, 64%, 70%) |
| CMYK | cmyk(64%, 49.4%, 0%, 30.2%) |
| CIE-LAB | lab(40.60, 18.86, -49.86) |
| CIE-LCH | lch(40.60, 53.31, 290.72°) |
| OKLab | oklab(49.48% -0.004 -0.1428) |
| OKLCH | oklch(49.48% 0.143 268.4) |
| XYZ | xyz(13.8037, 11.6154, 43.6254) |
| Luminance | 0.1162 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 4.42
Denim Blue
#3B5B92
ΔE00 4.72
Dusky Blue
#475F94
ΔE00 4.74
Denim
#1560BD
ΔE00 5.49
French Blue
#436BAD
ΔE00 6.25
Warm Blue
#4B57DB
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#405AB2 #B29840
analogous
#4093B2 #405AB2 #5F40B2
triadic
#405AB2 #B2405A #5AB240
tetradic
#405AB2 #B24093 #B29840 #40B25F
square
#405AB2 #B24093 #B29840 #40B25F
split-complementary
#405AB2 #B25F40 #93B240
monochromatic
#202C58 #304385 #405AB2 #677DC8 #94A4D8
Accessibility & contrast
On white
6.32
#405AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.32
#405AB2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #405AB2
6.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##405AB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##405AB2 | 1.00 | 6.32 | 3.32 | 6.32 |
| #FFFFFF | 6.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B65B5
Deuteranopia (green-blind)
#105BB0
Tritanopia (blue-blind)
#006E7D
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #405ab2; /* rgb */ color: rgb(64, 90, 178); /* oklch */ color: oklch(49.5% 0.143 268.4);
Tailwind
colors: {
custom: {
50: '#8088ca',
500: '#405ab2',
950: '#000000',
},
}SCSS
$custom: #405ab2; $custom-light: #8088ca; $custom-dark: #000000;
JSON
{
"hex": "#405ab2",
"rgb": {
"r": 64,
"g": 90,
"b": 178
},
"hsl": {
"h": 226.316,
"s": 47.107,
"l": 47.451
},
"oklch": {
"l": 0.49479,
"c": 0.14283,
"h": 268.4
},
"luminance": 0.11617
}Semantic roles & 50–950 ramp
primary
#405AB2
secondary
#C4B78A
accent
#B851D7
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82