#402296#402296
#402296 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.175 H 286.2°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).
Color values
| HEX | #402296 |
|---|---|
| RGB | rgb(64, 34, 150) |
| HSL | hsl(256, 63%, 36%) |
| HSV | hsv(256, 77%, 59%) |
| CMYK | cmyk(57.3%, 77.3%, 0%, 41.2%) |
| CIE-LAB | lab(25.06, 43.85, -58.28) |
| CIE-LCH | lch(25.06, 72.94, 306.95°) |
| OKLab | oklab(37.36% 0.0489 -0.1678) |
| OKLCH | oklch(37.36% 0.175 286.2) |
| XYZ | xyz(8.1897, 4.4356, 29.2729) |
| Luminance | 0.0444 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.04
Royal
#0C1793
ΔE00 5.30
Indigo (survey)
#380282
ΔE00 5.71
Ultramarine
#2000B1
ΔE00 6.03
Cobalt Blue
#030AA7
ΔE00 6.04
Indigo
#4B0082
ΔE00 6.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#402296 #789622
analogous
#223E96 #402296 #7A2296
triadic
#402296 #964022 #229640
tetradic
#402296 #96223E #789622 #22967A
square
#402296 #96223E #789622 #22967A
split-complementary
#402296 #967A22 #3E9622
monochromatic
#150B32 #2B1764 #402296 #552DC8 #7A59D9
Accessibility & contrast
On white
11.13
#402296 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.89
#402296 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #402296
11.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##402296 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##402296 | 1.00 | 11.13 | 1.89 | 11.13 |
| #FFFFFF | 11.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E99
Deuteranopia (green-blind)
#003894
Tritanopia (blue-blind)
#17435B
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #402296; /* rgb */ color: rgb(64, 34, 150); /* oklch */ color: oklch(37.4% 0.175 286.2);
Tailwind
colors: {
custom: {
50: '#7f61b6',
500: '#402296',
950: '#000000',
},
}SCSS
$custom: #402296; $custom-light: #7f61b6; $custom-dark: #000000;
JSON
{
"hex": "#402296",
"rgb": {
"r": 64,
"g": 34,
"b": 150
},
"hsl": {
"h": 255.517,
"s": 63.043,
"l": 36.078
},
"oklch": {
"l": 0.3736,
"c": 0.17477,
"h": 286.2
},
"luminance": 0.04436
}Semantic roles & 50–950 ramp
primary
#402296
secondary
#A3BE56
accent
#E642BC
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980