#37168F#37168F
#37168F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.178 H 284.5°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).
Color values
| HEX | #37168F |
|---|---|
| RGB | rgb(55, 22, 143) |
| HSL | hsl(256, 73%, 32%) |
| HSV | hsv(256, 85%, 56%) |
| CMYK | cmyk(61.5%, 84.6%, 0%, 43.9%) |
| CIE-LAB | lab(21.46, 46.28, -59.92) |
| CIE-LCH | lch(21.46, 75.71, 307.68°) |
| OKLab | oklab(34.42% 0.0445 -0.1727) |
| OKLCH | oklch(34.42% 0.178 284.5) |
| XYZ | xyz(6.8189, 3.3688, 26.2722) |
| Luminance | 0.0337 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.28
Royal
#0C1793
ΔE00 3.85
Cobalt Blue
#030AA7
ΔE00 4.71
Indigo
#4B0082
ΔE00 4.75
Indigo Blue
#3A18B1
ΔE00 4.76
Royal Blue (survey)
#0504AA
ΔE00 4.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#37168F #6E8F16
analogous
#16318F #37168F #74168F
triadic
#37168F #8F3716 #168F37
tetradic
#37168F #8F1631 #6E8F16 #168F74
square
#37168F #8F1631 #6E8F16 #168F74
split-complementary
#37168F #8F7416 #318F16
monochromatic
#0E0625 #230E5A #37168F #4B1EC4 #6B3EE1
Accessibility & contrast
On white
12.55
#37168F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#37168F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #37168F
12.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##37168F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##37168F | 1.00 | 12.55 | 1.67 | 12.55 |
| #FFFFFF | 12.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #37168f; /* rgb */ color: rgb(55, 22, 143); /* oklch */ color: oklch(34.4% 0.178 284.5);
Tailwind
colors: {
custom: {
50: '#7a5ab1',
500: '#37168f',
950: '#000000',
},
}SCSS
$custom: #37168f; $custom-light: #7a5ab1; $custom-dark: #000000;
JSON
{
"hex": "#37168f",
"rgb": {
"r": 55,
"g": 22,
"b": 143
},
"hsl": {
"h": 256.364,
"s": 73.333,
"l": 32.353
},
"oklch": {
"l": 0.34417,
"c": 0.17836,
"h": 284.5
},
"luminance": 0.03369
}Semantic roles & 50–950 ramp
primary
#37168F
secondary
#9EC13F
accent
#F038BE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980