#412397#412397
#412397 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.175 H 286.4°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).
Color values
| HEX | #412397 |
|---|---|
| RGB | rgb(65, 35, 151) |
| HSL | hsl(256, 62%, 36%) |
| HSV | hsv(256, 77%, 59%) |
| CMYK | cmyk(57%, 76.8%, 0%, 40.8%) |
| CIE-LAB | lab(25.44, 43.78, -58.27) |
| CIE-LCH | lch(25.44, 72.88, 306.92°) |
| OKLab | oklab(37.68% 0.0494 -0.1677) |
| OKLCH | oklch(37.68% 0.175 286.4) |
| XYZ | xyz(8.3652, 4.5598, 29.7115) |
| Luminance | 0.0456 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.01
Royal
#0C1793
ΔE00 5.51
Indigo (survey)
#380282
ΔE00 5.96
Ultramarine
#2000B1
ΔE00 6.15
Cobalt Blue
#030AA7
ΔE00 6.21
Indigo
#4B0082
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#412397 #799723
analogous
#233F97 #412397 #7B2397
triadic
#412397 #974123 #239741
tetradic
#412397 #97233F #799723 #23977B
square
#412397 #97233F #799723 #23977B
split-complementary
#412397 #977B23 #3F9723
monochromatic
#160C34 #2C1765 #412397 #562FC9 #7C5BD9
Accessibility & contrast
On white
10.98
#412397 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.91
#412397 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #412397
10.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##412397 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##412397 | 1.00 | 10.98 | 1.91 | 10.98 |
| #FFFFFF | 10.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#19445C
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #412397; /* rgb */ color: rgb(65, 35, 151); /* oklch */ color: oklch(37.7% 0.175 286.4);
Tailwind
colors: {
custom: {
50: '#8062b7',
500: '#412397',
950: '#000000',
},
}SCSS
$custom: #412397; $custom-light: #8062b7; $custom-dark: #000000;
JSON
{
"hex": "#412397",
"rgb": {
"r": 65,
"g": 35,
"b": 151
},
"hsl": {
"h": 255.517,
"s": 62.366,
"l": 36.471
},
"oklch": {
"l": 0.37681,
"c": 0.17485,
"h": 286.4
},
"luminance": 0.0456
}Semantic roles & 50–950 ramp
primary
#412397
secondary
#A3BE58
accent
#E542BB
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980