#402093#402093
#402093 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.173 H 287.2°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).
Color values
| HEX | #402093 |
|---|---|
| RGB | rgb(64, 32, 147) |
| HSL | hsl(257, 64%, 35%) |
| HSV | hsv(257, 78%, 58%) |
| CMYK | cmyk(56.5%, 78.2%, 0%, 42.4%) |
| CIE-LAB | lab(24.42, 43.96, -57.50) |
| CIE-LCH | lch(24.42, 72.38, 307.40°) |
| OKLab | oklab(36.82% 0.0512 -0.1655) |
| OKLCH | oklch(36.82% 0.173 287.2) |
| XYZ | xyz(7.8958, 4.2292, 27.9984) |
| Luminance | 0.0423 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.34
Indigo (survey)
#380282
ΔE00 5.14
Royal
#0C1793
ΔE00 5.21
Indigo
#4B0082
ΔE00 5.52
Cobalt Blue
#030AA7
ΔE00 6.03
Ultramarine
#2000B1
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#402093 #739320
analogous
#203993 #402093 #7A2093
triadic
#402093 #934020 #209340
tetradic
#402093 #932039 #739320 #20937A
square
#402093 #932039 #739320 #20937A
split-complementary
#402093 #937A20 #399320
monochromatic
#140A2E #2A1561 #402093 #562BC5 #7954DA
Accessibility & contrast
On white
11.38
#402093 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#402093 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #402093
11.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##402093 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##402093 | 1.00 | 11.38 | 1.85 | 11.38 |
| #FFFFFF | 11.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D96
Deuteranopia (green-blind)
#003791
Tritanopia (blue-blind)
#1B4159
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #402093; /* rgb */ color: rgb(64, 32, 147); /* oklch */ color: oklch(36.8% 0.173 287.2);
Tailwind
colors: {
custom: {
50: '#7f60b4',
500: '#402093',
950: '#000000',
},
}SCSS
$custom: #402093; $custom-light: #7f60b4; $custom-dark: #000000;
JSON
{
"hex": "#402093",
"rgb": {
"r": 64,
"g": 32,
"b": 147
},
"hsl": {
"h": 256.696,
"s": 64.246,
"l": 35.098
},
"oklch": {
"l": 0.36816,
"c": 0.17323,
"h": 287.2
},
"luminance": 0.0423
}Semantic roles & 50–950 ramp
primary
#402093
secondary
#9FBD52
accent
#E741B9
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980