#405AB8#405AB8
#405AB8 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.9% C 0.151 H 268.8°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).
Color values
| HEX | #405AB8 |
|---|---|
| RGB | rgb(64, 90, 184) |
| HSL | hsl(227, 48%, 49%) |
| HSV | hsv(227, 65%, 72%) |
| CMYK | cmyk(65.2%, 51.1%, 0%, 27.8%) |
| CIE-LAB | lab(41.00, 21.00, -52.74) |
| CIE-LCH | lch(41.00, 56.77, 291.71°) |
| OKLab | oklab(49.91% -0.0033 -0.1513) |
| OKLCH | oklch(49.91% 0.151 268.8) |
| XYZ | xyz(14.4193, 11.8617, 46.8678) |
| Luminance | 0.1186 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 4.43
Dusky Blue
#475F94
ΔE00 5.46
Denim Blue
#3B5B92
ΔE00 5.48
Denim
#1560BD
ΔE00 5.56
Warm Blue
#4B57DB
ΔE00 5.61
French Blue
#436BAD
ΔE00 6.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#405AB8 #B89E40
analogous
#4096B8 #405AB8 #6240B8
triadic
#405AB8 #B8405A #5AB840
tetradic
#405AB8 #B84096 #B89E40 #40B862
square
#405AB8 #B84096 #B89E40 #40B862
split-complementary
#405AB8 #B86240 #96B840
monochromatic
#202E5D #30448B #405AB8 #6A7FCB #97A6DB
Accessibility & contrast
On white
6.23
#405AB8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.37
#405AB8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #405AB8
6.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##405AB8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##405AB8 | 1.00 | 6.23 | 3.37 | 6.23 |
| #FFFFFF | 6.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2466BB
Deuteranopia (green-blind)
#005CB6
Tritanopia (blue-blind)
#007080
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #405ab8; /* rgb */ color: rgb(64, 90, 184); /* oklch */ color: oklch(49.9% 0.151 268.8);
Tailwind
colors: {
custom: {
50: '#8188ce',
500: '#405ab8',
950: '#000000',
},
}SCSS
$custom: #405ab8; $custom-light: #8188ce; $custom-dark: #000000;
JSON
{
"hex": "#405ab8",
"rgb": {
"r": 64,
"g": 90,
"b": 184
},
"hsl": {
"h": 227,
"s": 48.387,
"l": 48.627
},
"oklch": {
"l": 0.49908,
"c": 0.1513,
"h": 268.8
},
"luminance": 0.11863
}Semantic roles & 50–950 ramp
primary
#405AB8
secondary
#C7BA8D
accent
#BA50D8
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0B0B14
muted
#7C7C82