#38186C#38186C
#38186C is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.135 H 294.6°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).
Color values
| HEX | #38186C |
|---|---|
| RGB | rgb(56, 24, 108) |
| HSL | hsl(263, 64%, 26%) |
| HSV | hsv(263, 78%, 42%) |
| CMYK | cmyk(48.1%, 77.8%, 0%, 57.6%) |
| CIE-LAB | lab(18.26, 35.37, -42.91) |
| CIE-LCH | lch(18.26, 55.61, 309.50°) |
| OKLab | oklab(31.12% 0.0562 -0.123) |
| OKLCH | oklch(31.12% 0.135 294.6) |
| XYZ | xyz(4.6636, 2.5766, 14.4361) |
| Luminance | 0.0258 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.08
Royal Purple (survey)
#4B006E
ΔE00 5.08
Midnight Blue
#191970
ΔE00 5.12
Indigo
#4B0082
ΔE00 5.52
Dark Indigo
#1F0954
ΔE00 5.55
Dark Royal Blue
#02066F
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#38186C #4C6C18
analogous
#18226C #38186C #62186C
triadic
#38186C #6C3818 #186C38
tetradic
#38186C #6C1822 #4C6C18 #186C62
square
#38186C #6C1822 #4C6C18 #186C62
split-complementary
#38186C #6C6218 #226C18
monochromatic
#0D0619 #1E0D3A #38186C #52239E #6C2ED0
Accessibility & contrast
On white
13.86
#38186C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#38186C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #38186C
13.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##38186C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##38186C | 1.00 | 13.86 | 1.52 | 13.86 |
| #FFFFFF | 13.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D6E
Deuteranopia (green-blind)
#002B6A
Tritanopia (blue-blind)
#292E41
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #38186c; /* rgb */ color: rgb(56, 24, 108); /* oklch */ color: oklch(31.1% 0.135 294.6);
Tailwind
colors: {
custom: {
50: '#745897',
500: '#38186c',
950: '#000000',
},
}SCSS
$custom: #38186c; $custom-light: #745897; $custom-dark: #000000;
JSON
{
"hex": "#38186c",
"rgb": {
"r": 56,
"g": 24,
"b": 108
},
"hsl": {
"h": 262.857,
"s": 63.636,
"l": 25.882
},
"oklch": {
"l": 0.31121,
"c": 0.13518,
"h": 294.6
},
"luminance": 0.02577
}Semantic roles & 50–950 ramp
primary
#38186C
secondary
#7CA23E
accent
#E741A8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E