#405DC1#405DC1
#405DC1 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.2% C 0.160 H 268.1°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).
Color values
| HEX | #405DC1 |
|---|---|
| RGB | rgb(64, 93, 193) |
| HSL | hsl(227, 51%, 50%) |
| HSV | hsv(227, 67%, 76%) |
| CMYK | cmyk(66.8%, 51.8%, 0%, 24.3%) |
| CIE-LAB | lab(42.41, 22.28, -55.70) |
| CIE-LCH | lch(42.41, 60.00, 291.80°) |
| OKLab | oklab(51.17% -0.0052 -0.1599) |
| OKLCH | oklch(51.17% 0.16 268.1) |
| XYZ | xyz(15.6510, 12.7675, 52.0813) |
| Luminance | 0.1277 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 4.91
Sapphire
#0F52BA
ΔE00 5.07
Azul
#1D5DEC
ΔE00 5.18
Denim
#1560BD
ΔE00 5.19
Royal Blue
#4169E1
ΔE00 5.75
French Blue
#436BAD
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#405DC1 #C1A440
analogous
#409DC1 #405DC1 #6440C1
triadic
#405DC1 #C1405D #5DC140
tetradic
#405DC1 #C1409D #C1A440 #40C164
square
#405DC1 #C1409D #C1A440 #40C164
split-complementary
#405DC1 #C16440 #9DC140
monochromatic
#213066 #304694 #405DC1 #6E84D0 #9CABDF
Accessibility & contrast
On white
5.91
#405DC1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.55
#405DC1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #405DC1
5.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##405DC1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##405DC1 | 1.00 | 5.91 | 3.55 | 5.91 |
| #FFFFFF | 5.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F6AC5
Deuteranopia (green-blind)
#005FBF
Tritanopia (blue-blind)
#007586
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #405dc1; /* rgb */ color: rgb(64, 93, 193); /* oklch */ color: oklch(51.2% 0.160 268.1);
Tailwind
colors: {
custom: {
50: '#838ad4',
500: '#405dc1',
950: '#000000',
},
}SCSS
$custom: #405dc1; $custom-light: #838ad4; $custom-dark: #000000;
JSON
{
"hex": "#405dc1",
"rgb": {
"r": 64,
"g": 93,
"b": 193
},
"hsl": {
"h": 226.512,
"s": 50.988,
"l": 50.392
},
"oklch": {
"l": 0.51174,
"c": 0.16002,
"h": 268.1
},
"luminance": 0.12769
}Semantic roles & 50–950 ramp
primary
#405DC1
secondary
#CBBE92
accent
#BB4DDA
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B14
muted
#7D7C83