#38136E#38136E
#38136E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.143 H 294.8°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).
Color values
| HEX | #38136E |
|---|---|
| RGB | rgb(56, 19, 110) |
| HSL | hsl(264, 71%, 25%) |
| HSV | hsv(264, 83%, 43%) |
| CMYK | cmyk(49.1%, 82.7%, 0%, 56.9%) |
| CIE-LAB | lab(17.61, 38.36, -45.28) |
| CIE-LCH | lch(17.61, 59.35, 310.27°) |
| OKLab | oklab(30.72% 0.06 -0.1299) |
| OKLCH | oklch(30.72% 0.143 294.8) |
| XYZ | xyz(4.6775, 2.4322, 14.9718) |
| Luminance | 0.0243 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.08
Royal Purple (survey)
#4B006E
ΔE00 4.43
Indigo
#4B0082
ΔE00 4.68
Midnight Blue
#191970
ΔE00 5.27
Dark Indigo
#1F0954
ΔE00 5.51
Dark Royal Blue
#02066F
ΔE00 6.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#38136E #496E13
analogous
#131B6E #38136E #66136E
triadic
#38136E #6E3813 #136E38
tetradic
#38136E #6E131B #496E13 #136E66
square
#38136E #6E131B #496E13 #136E66
split-complementary
#38136E #6E6613 #1B6E13
monochromatic
#0D051A #1D0A3A #38136E #531CA2 #6D25D6
Accessibility & contrast
On white
14.13
#38136E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#38136E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #38136E
14.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##38136E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##38136E | 1.00 | 14.13 | 1.49 | 14.13 |
| #FFFFFF | 14.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#002A6C
Tritanopia (blue-blind)
#282D41
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #38136e; /* rgb */ color: rgb(56, 19, 110); /* oklch */ color: oklch(30.7% 0.143 294.8);
Tailwind
colors: {
custom: {
50: '#755698',
500: '#38136e',
950: '#000000',
},
}SCSS
$custom: #38136e; $custom-light: #755698; $custom-dark: #000000;
JSON
{
"hex": "#38136e",
"rgb": {
"r": 56,
"g": 19,
"b": 110
},
"hsl": {
"h": 264.396,
"s": 70.543,
"l": 25.294
},
"oklch": {
"l": 0.30723,
"c": 0.14308,
"h": 294.8
},
"luminance": 0.02432
}Semantic roles & 50–950 ramp
primary
#38136E
secondary
#79A538
accent
#ED3AA5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E