#412F7D#412F7D
#412F7D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.1% C 0.126 H 289.4°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).
Color values
| HEX | #412F7D |
|---|---|
| RGB | rgb(65, 47, 125) |
| HSL | hsl(254, 45%, 34%) |
| HSV | hsv(254, 62%, 49%) |
| CMYK | cmyk(48%, 62.4%, 0%, 51%) |
| CIE-LAB | lab(25.68, 28.92, -41.70) |
| CIE-LCH | lch(25.68, 50.75, 304.74°) |
| OKLab | oklab(37.15% 0.042 -0.1191) |
| OKLCH | oklch(37.15% 0.126 289.4) |
| XYZ | xyz(6.8971, 4.6373, 19.9297) |
| Luminance | 0.0464 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.30
Blueberry
#464196
ΔE00 6.24
Midnight Blue
#191970
ΔE00 7.50
Rebeccapurple
#663399
ΔE00 7.81
Indigo
#4B0082
ΔE00 8.82
Royal
#0C1793
ΔE00 8.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#412F7D #6B7D2F
analogous
#2F447D #412F7D #682F7D
triadic
#412F7D #7D412F #2F7D41
tetradic
#412F7D #7D2F44 #6B7D2F #2F7D68
square
#412F7D #7D2F44 #6B7D2F #2F7D68
split-complementary
#412F7D #7D682F #447D2F
monochromatic
#130E24 #2A1E51 #412F7D #5840A9 #7962C4
Accessibility & contrast
On white
10.89
#412F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#412F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #412F7D
10.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##412F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##412F7D | 1.00 | 10.89 | 1.93 | 10.89 |
| #FFFFFF | 10.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#2E4151
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #412f7d; /* rgb */ color: rgb(65, 47, 125); /* oklch */ color: oklch(37.1% 0.126 289.4);
Tailwind
colors: {
custom: {
50: '#7b68a3',
500: '#412f7d',
950: '#000000',
},
}SCSS
$custom: #412f7d; $custom-light: #7b68a3; $custom-dark: #000000;
JSON
{
"hex": "#412f7d",
"rgb": {
"r": 65,
"g": 47,
"b": 125
},
"hsl": {
"h": 253.846,
"s": 45.349,
"l": 33.725
},
"oklch": {
"l": 0.37145,
"c": 0.12631,
"h": 289.4
},
"luminance": 0.04638
}Semantic roles & 50–950 ramp
primary
#412F7D
secondary
#99AB5D
accent
#D553B7
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A060F
muted
#7C7A7F