#45218F#45218F
#45218F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.167 H 290.8°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).
Color values
| HEX | #45218F |
|---|---|
| RGB | rgb(69, 33, 143) |
| HSL | hsl(260, 63%, 35%) |
| HSV | hsv(260, 77%, 56%) |
| CMYK | cmyk(51.7%, 76.9%, 0%, 43.9%) |
| CIE-LAB | lab(24.75, 43.05, -54.45) |
| CIE-LCH | lch(24.75, 69.41, 308.33°) |
| OKLab | oklab(37.06% 0.0594 -0.1564) |
| OKLCH | oklch(37.06% 0.167 290.8) |
| XYZ | xyz(7.9546, 4.3358, 26.3990) |
| Luminance | 0.0434 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 5.08
Indigo Blue
#3A18B1
ΔE00 5.19
Indigo (survey)
#380282
ΔE00 5.23
Royal
#0C1793
ΔE00 6.14
Ultramarine
#2000B1
ΔE00 7.00
Rebeccapurple
#663399
ΔE00 7.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#45218F #6B8F21
analogous
#21348F #45218F #7C218F
triadic
#45218F #8F4521 #218F45
tetradic
#45218F #8F2134 #6B8F21 #218F7C
square
#45218F #8F2134 #6B8F21 #218F7C
split-complementary
#45218F #8F7C21 #348F21
monochromatic
#150A2C #2D165D #45218F #5D2CC1 #7E53D7
Accessibility & contrast
On white
11.25
#45218F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.87
#45218F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #45218F
11.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##45218F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##45218F | 1.00 | 11.25 | 1.87 | 11.25 |
| #FFFFFF | 11.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#2B3F57
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #45218f; /* rgb */ color: rgb(69, 33, 143); /* oklch */ color: oklch(37.1% 0.167 290.8);
Tailwind
colors: {
custom: {
50: '#8160b1',
500: '#45218f',
950: '#000000',
},
}SCSS
$custom: #45218f; $custom-light: #8160b1; $custom-dark: #000000;
JSON
{
"hex": "#45218f",
"rgb": {
"r": 69,
"g": 33,
"b": 143
},
"hsl": {
"h": 259.636,
"s": 62.5,
"l": 34.51
},
"oklch": {
"l": 0.37064,
"c": 0.16729,
"h": 290.8
},
"luminance": 0.04336
}Semantic roles & 50–950 ramp
primary
#45218F
secondary
#98BB51
accent
#E642B0
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980