#36158F#36158F
#36158F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.179 H 284.0°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).
Color values
| HEX | #36158F |
|---|---|
| RGB | rgb(54, 21, 143) |
| HSL | hsl(256, 74%, 32%) |
| HSV | hsv(256, 85%, 56%) |
| CMYK | cmyk(62.2%, 85.3%, 0%, 43.9%) |
| CIE-LAB | lab(21.22, 46.59, -60.33) |
| CIE-LCH | lch(21.22, 76.22, 307.68°) |
| OKLab | oklab(34.22% 0.0434 -0.1739) |
| OKLCH | oklch(34.22% 0.179 284) |
| XYZ | xyz(6.7459, 3.3033, 26.2634) |
| Luminance | 0.0330 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.17
Royal
#0C1793
ΔE00 3.74
Cobalt Blue
#030AA7
ΔE00 4.58
Indigo
#4B0082
ΔE00 4.77
Indigo Blue
#3A18B1
ΔE00 4.80
Royal Blue (survey)
#0504AA
ΔE00 4.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#36158F #6E8F15
analogous
#15318F #36158F #73158F
triadic
#36158F #8F3615 #158F36
tetradic
#36158F #8F1531 #6E8F15 #158F73
square
#36158F #8F1531 #6E8F15 #158F73
split-complementary
#36158F #8F7315 #318F15
monochromatic
#0E0524 #220D5A #36158F #4A1DC4 #693CE2
Accessibility & contrast
On white
12.64
#36158F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#36158F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #36158F
12.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##36158F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##36158F | 1.00 | 12.64 | 1.66 | 12.64 |
| #FFFFFF | 12.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #36158f; /* rgb */ color: rgb(54, 21, 143); /* oklch */ color: oklch(34.2% 0.179 284.0);
Tailwind
colors: {
custom: {
50: '#7a59b1',
500: '#36158f',
950: '#000000',
},
}SCSS
$custom: #36158f; $custom-light: #7a59b1; $custom-dark: #000000;
JSON
{
"hex": "#36158f",
"rgb": {
"r": 54,
"g": 21,
"b": 143
},
"hsl": {
"h": 256.23,
"s": 74.39,
"l": 32.157
},
"oklch": {
"l": 0.34224,
"c": 0.17925,
"h": 284
},
"luminance": 0.03304
}Semantic roles & 50–950 ramp
primary
#36158F
secondary
#9EC23E
accent
#F137BF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980