#402691#402691
#402691 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.164 H 286.6°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).
Color values
| HEX | #402691 |
|---|---|
| RGB | rgb(64, 38, 145) |
| HSL | hsl(255, 58%, 36%) |
| HSV | hsv(255, 74%, 57%) |
| CMYK | cmyk(55.9%, 73.8%, 0%, 43.1%) |
| CIE-LAB | lab(25.32, 40.25, -54.77) |
| CIE-LCH | lch(25.32, 67.97, 306.31°) |
| OKLab | oklab(37.4% 0.0469 -0.1575) |
| OKLCH | oklch(37.4% 0.164 286.6) |
| XYZ | xyz(7.9168, 4.5201, 27.2379) |
| Luminance | 0.0452 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 5.11
Royal
#0C1793
ΔE00 5.74
Indigo (survey)
#380282
ΔE00 6.22
Indigo
#4B0082
ΔE00 6.52
Darkslateblue
#483D8B
ΔE00 6.66
Cobalt Blue
#030AA7
ΔE00 6.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#402691 #779126
analogous
#264291 #402691 #752691
triadic
#402691 #914026 #269140
tetradic
#402691 #912642 #779126 #269175
square
#402691 #912642 #779126 #269175
split-complementary
#402691 #917526 #429126
monochromatic
#150D30 #2B1961 #402691 #5533C1 #7A5DD5
Accessibility & contrast
On white
11.03
#402691 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#402691 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #402691
11.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##402691 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##402691 | 1.00 | 11.03 | 1.90 | 11.03 |
| #FFFFFF | 11.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F94
Deuteranopia (green-blind)
#00398F
Tritanopia (blue-blind)
#1D4359
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #402691; /* rgb */ color: rgb(64, 38, 145); /* oklch */ color: oklch(37.4% 0.164 286.6);
Tailwind
colors: {
custom: {
50: '#7e63b2',
500: '#402691',
950: '#000000',
},
}SCSS
$custom: #402691; $custom-light: #7e63b2; $custom-dark: #000000;
JSON
{
"hex": "#402691",
"rgb": {
"r": 64,
"g": 38,
"b": 145
},
"hsl": {
"h": 254.579,
"s": 58.47,
"l": 35.882
},
"oklch": {
"l": 0.37396,
"c": 0.16439,
"h": 286.6
},
"luminance": 0.04521
}Semantic roles & 50–950 ramp
primary
#402691
secondary
#A2BA59
accent
#E246BC
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80