#412498#412498
#412498 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.175 H 286.0°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).
Color values
| HEX | #412498 |
|---|---|
| RGB | rgb(65, 36, 152) |
| HSL | hsl(255, 62%, 37%) |
| HSV | hsv(255, 76%, 60%) |
| CMYK | cmyk(57.2%, 76.3%, 0%, 40.4%) |
| CIE-LAB | lab(25.72, 43.56, -58.43) |
| CIE-LCH | lch(25.72, 72.88, 306.71°) |
| OKLab | oklab(37.91% 0.0483 -0.1682) |
| OKLCH | oklch(37.91% 0.175 286) |
| XYZ | xyz(8.4766, 4.6521, 30.1510) |
| Luminance | 0.0465 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.97
Royal
#0C1793
ΔE00 5.59
Ultramarine
#2000B1
ΔE00 6.21
Indigo (survey)
#380282
ΔE00 6.22
Cobalt Blue
#030AA7
ΔE00 6.28
Indigo
#4B0082
ΔE00 6.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#412498 #7B9824
analogous
#244198 #412498 #7B2498
triadic
#412498 #984124 #249841
tetradic
#412498 #982441 #7B9824 #24987B
square
#412498 #982441 #7B9824 #24987B
split-complementary
#412498 #987B24 #419824
monochromatic
#170D35 #2C1867 #412498 #5630C9 #7C5ED9
Accessibility & contrast
On white
10.88
#412498 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#412498 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #412498
10.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##412498 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##412498 | 1.00 | 10.88 | 1.93 | 10.88 |
| #FFFFFF | 10.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003996
Tritanopia (blue-blind)
#18445C
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #412498; /* rgb */ color: rgb(65, 36, 152); /* oklch */ color: oklch(37.9% 0.175 286.0);
Tailwind
colors: {
custom: {
50: '#8062b7',
500: '#412498',
950: '#000000',
},
}SCSS
$custom: #412498; $custom-light: #8062b7; $custom-dark: #000000;
JSON
{
"hex": "#412498",
"rgb": {
"r": 65,
"g": 36,
"b": 152
},
"hsl": {
"h": 255,
"s": 61.702,
"l": 36.863
},
"oklch": {
"l": 0.37906,
"c": 0.17502,
"h": 286
},
"luminance": 0.04653
}Semantic roles & 50–950 ramp
primary
#412498
secondary
#A5BE5A
accent
#E543BC
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80