#45218D#45218D
#45218D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.165 H 291.3°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).
Color values
| HEX | #45218D |
|---|---|
| RGB | rgb(69, 33, 141) |
| HSL | hsl(260, 62%, 34%) |
| HSV | hsv(260, 77%, 55%) |
| CMYK | cmyk(51.1%, 76.6%, 0%, 44.7%) |
| CIE-LAB | lab(24.56, 42.48, -53.52) |
| CIE-LCH | lch(24.56, 68.33, 308.44°) |
| OKLab | oklab(36.87% 0.0599 -0.1537) |
| OKLCH | oklch(36.87% 0.165 291.3) |
| XYZ | xyz(7.8045, 4.2757, 25.6082) |
| Luminance | 0.0428 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.96
Indigo (survey)
#380282
ΔE00 5.15
Indigo Blue
#3A18B1
ΔE00 5.50
Royal
#0C1793
ΔE00 6.24
Rebeccapurple
#663399
ΔE00 7.03
Cobalt Blue
#030AA7
ΔE00 7.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#45218D #698D21
analogous
#21338D #45218D #7B218D
triadic
#45218D #8D4521 #218D45
tetradic
#45218D #8D2133 #698D21 #218D7B
square
#45218D #8D2133 #698D21 #218D7B
split-complementary
#45218D #8D7B21 #338D21
monochromatic
#140A2A #2D155B #45218D #5D2DBF #7E52D6
Accessibility & contrast
On white
11.32
#45218D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.86
#45218D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #45218D
11.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##45218D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##45218D | 1.00 | 11.32 | 1.86 | 11.32 |
| #FFFFFF | 11.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#2D3E55
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #45218d; /* rgb */ color: rgb(69, 33, 141); /* oklch */ color: oklch(36.9% 0.165 291.3);
Tailwind
colors: {
custom: {
50: '#8160af',
500: '#45218d',
950: '#000000',
},
}SCSS
$custom: #45218d; $custom-light: #8160af; $custom-dark: #000000;
JSON
{
"hex": "#45218d",
"rgb": {
"r": 69,
"g": 33,
"b": 141
},
"hsl": {
"h": 260,
"s": 62.069,
"l": 34.118
},
"oklch": {
"l": 0.36873,
"c": 0.16494,
"h": 291.3
},
"luminance": 0.04276
}Semantic roles & 50–950 ramp
primary
#45218D
secondary
#97BA50
accent
#E543AF
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F