#402C9E#402C9E
#402C9E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.5% C 0.174 H 283.0°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).
Color values
| HEX | #402C9E |
|---|---|
| RGB | rgb(64, 44, 158) |
| HSL | hsl(251, 56%, 40%) |
| HSV | hsv(251, 72%, 62%) |
| CMYK | cmyk(59.5%, 72.2%, 0%, 38%) |
| CIE-LAB | lab(27.74, 40.93, -58.79) |
| CIE-LCH | lch(27.74, 71.64, 304.85°) |
| OKLab | oklab(39.48% 0.0392 -0.1693) |
| OKLCH | oklch(39.48% 0.174 283) |
| XYZ | xyz(9.1847, 5.3594, 32.8916) |
| Luminance | 0.0536 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.49
Sapphire (survey)
#2138AB
ΔE00 5.55
Darkslateblue
#483D8B
ΔE00 6.19
Blueberry
#464196
ΔE00 6.22
Royal
#0C1793
ΔE00 6.52
Ocean Blue
#4F42B5
ΔE00 6.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#402C9E #8A9E2C
analogous
#2C519E #402C9E #792C9E
triadic
#402C9E #9E402C #2C9E40
tetradic
#402C9E #9E2C51 #8A9E2C #2C9E79
square
#402C9E #9E2C51 #8A9E2C #2C9E79
split-complementary
#402C9E #9E792C #519E2C
monochromatic
#19113E #2D1F6E #402C9E #563EC9 #806ED7
Accessibility & contrast
On white
10.14
#402C9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.07
#402C9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #402C9E
10.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##402C9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##402C9E | 1.00 | 10.14 | 2.07 | 10.14 |
| #FFFFFF | 10.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#003E9C
Tritanopia (blue-blind)
#044B62
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #402c9e; /* rgb */ color: rgb(64, 44, 158); /* oklch */ color: oklch(39.5% 0.174 283.0);
Tailwind
colors: {
custom: {
50: '#8067bc',
500: '#402c9e',
950: '#000000',
},
}SCSS
$custom: #402c9e; $custom-light: #8067bc; $custom-dark: #000000;
JSON
{
"hex": "#402c9e",
"rgb": {
"r": 64,
"g": 44,
"b": 158
},
"hsl": {
"h": 250.526,
"s": 56.436,
"l": 39.608
},
"oklch": {
"l": 0.39483,
"c": 0.17381,
"h": 283
},
"luminance": 0.0536
}Semantic roles & 50–950 ramp
primary
#402C9E
secondary
#AFBE68
accent
#E048C5
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81