#405FB7#405FB7
#405FB7 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 50.9% C 0.144 H 266.7°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).
Color values
| HEX | #405FB7 |
|---|---|
| RGB | rgb(64, 95, 183) |
| HSL | hsl(224, 48%, 48%) |
| HSV | hsv(224, 65%, 72%) |
| CMYK | cmyk(65%, 48.1%, 0%, 28.2%) |
| CIE-LAB | lab(42.30, 17.42, -50.06) |
| CIE-LCH | lch(42.30, 53.01, 289.19°) |
| OKLab | oklab(50.88% -0.0082 -0.1433) |
| OKLCH | oklch(50.88% 0.144 266.7) |
| XYZ | xyz(14.7509, 12.6919, 46.4630) |
| Luminance | 0.1269 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Denim
#1560BD
ΔE00 4.44
French Blue
#436BAD
ΔE00 4.62
Dusky Blue
#475F94
ΔE00 4.91
Denim Blue
#3B5B92
ΔE00 5.12
Sapphire
#0F52BA
ΔE00 5.14
Denim (survey)
#3B638C
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#405FB7 #B79840
analogous
#409AB7 #405FB7 #5C40B7
triadic
#405FB7 #B7405F #5FB740
tetradic
#405FB7 #B7409A #B79840 #40B75C
square
#405FB7 #B7409A #B79840 #40B75C
split-complementary
#405FB7 #B75C40 #9AB740
monochromatic
#20305C #30478A #405FB7 #6983CB #97A8DB
Accessibility & contrast
On white
5.93
#405FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.54
#405FB7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #405FB7
5.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##405FB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##405FB7 | 1.00 | 5.93 | 3.54 | 5.93 |
| #FFFFFF | 5.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#316ABA
Deuteranopia (green-blind)
#185FB5
Tritanopia (blue-blind)
#007382
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #405fb7; /* rgb */ color: rgb(64, 95, 183); /* oklch */ color: oklch(50.9% 0.144 266.7);
Tailwind
colors: {
custom: {
50: '#818ccd',
500: '#405fb7',
950: '#000000',
},
}SCSS
$custom: #405fb7; $custom-light: #818ccd; $custom-dark: #000000;
JSON
{
"hex": "#405fb7",
"rgb": {
"r": 64,
"g": 95,
"b": 183
},
"hsl": {
"h": 224.37,
"s": 48.178,
"l": 48.431
},
"oklch": {
"l": 0.50875,
"c": 0.14355,
"h": 266.7
},
"luminance": 0.12693
}Semantic roles & 50–950 ramp
primary
#405FB7
secondary
#C6B78D
accent
#B450D8
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0B0C13
muted
#7C7D82