#38166F#38166F
#38166F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.141 H 293.9°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).
Color values
| HEX | #38166F |
|---|---|
| RGB | rgb(56, 22, 111) |
| HSL | hsl(263, 67%, 26%) |
| HSV | hsv(263, 80%, 44%) |
| CMYK | cmyk(49.5%, 80.2%, 0%, 56.5%) |
| CIE-LAB | lab(18.20, 37.24, -44.97) |
| CIE-LCH | lch(18.20, 58.38, 309.63°) |
| OKLab | oklab(31.16% 0.0572 -0.129) |
| OKLCH | oklch(31.16% 0.141 293.9) |
| XYZ | xyz(4.7862, 2.5621, 15.2782) |
| Luminance | 0.0256 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.32
Royal Purple (survey)
#4B006E
ΔE00 4.82
Indigo
#4B0082
ΔE00 4.92
Midnight Blue
#191970
ΔE00 5.01
Dark Indigo
#1F0954
ΔE00 5.72
Dark Royal Blue
#02066F
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#38166F #4D6F16
analogous
#16216F #38166F #64166F
triadic
#38166F #6F3816 #166F38
tetradic
#38166F #6F1621 #4D6F16 #166F64
square
#38166F #6F1621 #4D6F16 #166F64
split-complementary
#38166F #6F6416 #216F16
monochromatic
#0D051A #1E0C3C #38166F #5220A2 #6C2BD5
Accessibility & contrast
On white
13.89
#38166F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#38166F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #38166F
13.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##38166F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##38166F | 1.00 | 13.89 | 1.51 | 13.89 |
| #FFFFFF | 13.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#272E42
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #38166f; /* rgb */ color: rgb(56, 22, 111); /* oklch */ color: oklch(31.2% 0.141 293.9);
Tailwind
colors: {
custom: {
50: '#755799',
500: '#38166f',
950: '#000000',
},
}SCSS
$custom: #38166f; $custom-light: #755799; $custom-dark: #000000;
JSON
{
"hex": "#38166f",
"rgb": {
"r": 56,
"g": 22,
"b": 111
},
"hsl": {
"h": 262.921,
"s": 66.917,
"l": 26.078
},
"oklch": {
"l": 0.31164,
"c": 0.14108,
"h": 293.9
},
"luminance": 0.02562
}Semantic roles & 50–950 ramp
primary
#38166F
secondary
#7DA53C
accent
#EA3EA8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E