#401895#401895
#401895 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.183 H 287.8°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).
Color values
| HEX | #401895 |
|---|---|
| RGB | rgb(64, 24, 149) |
| HSL | hsl(259, 72%, 34%) |
| HSV | hsv(259, 84%, 58%) |
| CMYK | cmyk(57%, 83.9%, 0%, 41.6%) |
| CIE-LAB | lab(23.38, 48.13, -60.44) |
| CIE-LCH | lch(23.38, 77.26, 308.53°) |
| OKLab | oklab(36.16% 0.0559 -0.174) |
| OKLCH | oklch(36.16% 0.183 287.8) |
| XYZ | xyz(7.8642, 3.9128, 28.7688) |
| Luminance | 0.0391 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.93
Indigo (survey)
#380282
ΔE00 4.14
Indigo
#4B0082
ΔE00 4.64
Royal
#0C1793
ΔE00 4.99
Ultramarine
#2000B1
ΔE00 5.10
Cobalt Blue
#030AA7
ΔE00 5.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#401895 #6D9518
analogous
#182F95 #401895 #7F1895
triadic
#401895 #954018 #189540
tetradic
#401895 #95182F #6D9518 #18957F
square
#401895 #95182F #6D9518 #18957F
split-complementary
#401895 #957F18 #2F9518
monochromatic
#13072C #291060 #401895 #5720CA #7846E1
Accessibility & contrast
On white
11.78
#401895 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#401895 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #401895
11.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##401895 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##401895 | 1.00 | 11.78 | 1.78 | 11.78 |
| #FFFFFF | 11.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#003493
Tritanopia (blue-blind)
#193E58
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #401895; /* rgb */ color: rgb(64, 24, 149); /* oklch */ color: oklch(36.2% 0.183 287.8);
Tailwind
colors: {
custom: {
50: '#805cb5',
500: '#401895',
950: '#000000',
},
}SCSS
$custom: #401895; $custom-light: #805cb5; $custom-dark: #000000;
JSON
{
"hex": "#401895",
"rgb": {
"r": 64,
"g": 24,
"b": 149
},
"hsl": {
"h": 259.2,
"s": 72.254,
"l": 33.922
},
"oklch": {
"l": 0.36161,
"c": 0.18273,
"h": 287.8
},
"luminance": 0.03913
}Semantic roles & 50–950 ramp
primary
#401895
secondary
#9BC246
accent
#EF39B5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980