#45219E#45219E
#45219E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.185 H 287.3°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).
Color values
| HEX | #45219E |
|---|---|
| RGB | rgb(69, 33, 158) |
| HSL | hsl(257, 65%, 37%) |
| HSV | hsv(257, 79%, 62%) |
| CMYK | cmyk(56.3%, 79.1%, 0%, 38%) |
| CIE-LAB | lab(26.22, 47.33, -61.26) |
| CIE-LCH | lch(26.22, 77.42, 307.69°) |
| OKLab | oklab(38.53% 0.055 -0.1763) |
| OKLCH | oklch(38.53% 0.185 287.3) |
| XYZ | xyz(9.1678, 4.8211, 32.7886) |
| Luminance | 0.0482 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.14
Ultramarine
#2000B1
ΔE00 5.66
Violet Blue
#510AC9
ΔE00 5.99
Royal
#0C1793
ΔE00 6.03
Cobalt Blue
#030AA7
ΔE00 6.10
Royal Blue (survey)
#0504AA
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#45219E #7A9E21
analogous
#213C9E #45219E #84219E
triadic
#45219E #9E4521 #219E45
tetradic
#45219E #9E213C #7A9E21 #219E84
square
#45219E #9E213C #7A9E21 #219E84
split-complementary
#45219E #9E8421 #3C9E21
monochromatic
#190C39 #2F166B #45219E #5B2CD1 #815CDD
Accessibility & contrast
On white
10.69
#45219E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.96
#45219E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #45219E
10.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##45219E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##45219E | 1.00 | 10.69 | 1.96 | 10.69 |
| #FFFFFF | 10.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#003B9C
Tritanopia (blue-blind)
#1D455F
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #45219e; /* rgb */ color: rgb(69, 33, 158); /* oklch */ color: oklch(38.5% 0.185 287.3);
Tailwind
colors: {
custom: {
50: '#8361bc',
500: '#45219e',
950: '#000000',
},
}SCSS
$custom: #45219e; $custom-light: #8361bc; $custom-dark: #000000;
JSON
{
"hex": "#45219e",
"rgb": {
"r": 69,
"g": 33,
"b": 158
},
"hsl": {
"h": 257.28,
"s": 65.445,
"l": 37.451
},
"oklch": {
"l": 0.38534,
"c": 0.18472,
"h": 287.3
},
"luminance": 0.04822
}Semantic roles & 50–950 ramp
primary
#45219E
secondary
#A3C159
accent
#E83FB8
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981