#45238C#45238C
#45238C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.0% C 0.162 H 291.2°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).
Color values
| HEX | #45238C |
|---|---|
| RGB | rgb(69, 35, 140) |
| HSL | hsl(259, 60%, 34%) |
| HSV | hsv(259, 75%, 55%) |
| CMYK | cmyk(50.7%, 75%, 0%, 45.1%) |
| CIE-LAB | lab(24.83, 41.18, -52.46) |
| CIE-LCH | lch(24.83, 66.69, 308.13°) |
| OKLab | oklab(37.03% 0.0584 -0.1506) |
| OKLCH | oklch(37.03% 0.162 291.2) |
| XYZ | xyz(7.7876, 4.3604, 25.2372) |
| Luminance | 0.0436 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 5.31
Indigo (survey)
#380282
ΔE00 5.51
Indigo Blue
#3A18B1
ΔE00 5.77
Royal
#0C1793
ΔE00 6.42
Rebeccapurple
#663399
ΔE00 6.86
Darkslateblue
#483D8B
ΔE00 7.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#45238C #6A8C23
analogous
#23358C #45238C #7A238C
triadic
#45238C #8C4523 #238C45
tetradic
#45238C #8C2335 #6A8C23 #238C7A
square
#45238C #8C2335 #6A8C23 #238C7A
split-complementary
#45238C #8C7A23 #358C23
monochromatic
#150B2A #2D175B #45238C #5D2FBD #7E55D4
Accessibility & contrast
On white
11.22
#45238C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.87
#45238C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #45238C
11.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##45238C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##45238C | 1.00 | 11.22 | 1.87 | 11.22 |
| #FFFFFF | 11.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#2D3F55
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #45238c; /* rgb */ color: rgb(69, 35, 140); /* oklch */ color: oklch(37.0% 0.162 291.2);
Tailwind
colors: {
custom: {
50: '#8061af',
500: '#45238c',
950: '#000000',
},
}SCSS
$custom: #45238c; $custom-light: #8061af; $custom-dark: #000000;
JSON
{
"hex": "#45238c",
"rgb": {
"r": 69,
"g": 35,
"b": 140
},
"hsl": {
"h": 259.429,
"s": 60,
"l": 34.314
},
"oklch": {
"l": 0.37032,
"c": 0.16152,
"h": 291.2
},
"luminance": 0.04361
}Semantic roles & 50–950 ramp
primary
#45238C
secondary
#97B852
accent
#E345B0
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F