#402CBD#402CBD
#402CBD is a dark, highly saturated blue. Relative luminance 0.066; OKLCH L 42.6% C 0.211 H 278.7°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).
Color values
| HEX | #402CBD |
|---|---|
| RGB | rgb(64, 44, 189) |
| HSL | hsl(248, 62%, 46%) |
| HSV | hsv(248, 77%, 74%) |
| CMYK | cmyk(66.1%, 76.7%, 0%, 25.9%) |
| CIE-LAB | lab(30.79, 50.50, -72.33) |
| CIE-LCH | lch(30.79, 88.22, 304.92°) |
| OKLab | oklab(42.57% 0.032 -0.2089) |
| OKLCH | oklch(42.57% 0.211 278.7) |
| XYZ | xyz(12.1974, 6.5645, 48.7585) |
| Luminance | 0.0657 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.12
Blue With A Hint Of Purple
#533CC6
ΔE00 4.53
Blurple
#5539CC
ΔE00 4.54
Violet Blue
#510AC9
ΔE00 4.63
Purple Blue
#5D21D0
ΔE00 4.64
True Blue
#010FCC
ΔE00 5.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#402CBD #A9BD2C
analogous
#2C60BD #402CBD #882CBD
triadic
#402CBD #BD402C #2CBD40
tetradic
#402CBD #BD2C60 #A9BD2C #2CBD88
square
#402CBD #BD2C60 #A9BD2C #2CBD88
split-complementary
#402CBD #BD882C #60BD2C
monochromatic
#1E155A #2F208B #402CBD #6250D6 #8F82E2
Accessibility & contrast
On white
9.08
#402CBD on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.31
#402CBD on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #402CBD
9.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##402CBD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##402CBD | 1.00 | 9.08 | 2.31 | 9.08 |
| #FFFFFF | 9.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EC1
Deuteranopia (green-blind)
#0043BA
Tritanopia (blue-blind)
#005773
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #402cbd; /* rgb */ color: rgb(64, 44, 189); /* oklch */ color: oklch(42.6% 0.211 278.7);
Tailwind
colors: {
custom: {
50: '#8669d2',
500: '#402cbd',
950: '#000000',
},
}SCSS
$custom: #402cbd; $custom-light: #8669d2; $custom-dark: #000000;
JSON
{
"hex": "#402cbd",
"rgb": {
"r": 64,
"g": 44,
"b": 189
},
"hsl": {
"h": 248.276,
"s": 62.232,
"l": 45.686
},
"oklch": {
"l": 0.42565,
"c": 0.21134,
"h": 278.7
},
"luminance": 0.06565
}Semantic roles & 50–950 ramp
primary
#402CBD
secondary
#C0CB7A
accent
#E542CF
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83