#381E6F#381E6F
#381E6F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.2% C 0.131 H 292.1°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).
Color values
| HEX | #381E6F |
|---|---|
| RGB | rgb(56, 30, 111) |
| HSL | hsl(259, 57%, 28%) |
| HSV | hsv(259, 73%, 44%) |
| CMYK | cmyk(49.5%, 73%, 0%, 56.5%) |
| CIE-LAB | lab(19.71, 32.98, -42.50) |
| CIE-LCH | lch(19.71, 53.79, 307.81°) |
| OKLab | oklab(32.23% 0.0494 -0.1218) |
| OKLCH | oklch(32.23% 0.131 292.1) |
| XYZ | xyz(4.9636, 2.9168, 15.3373) |
| Luminance | 0.0292 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.81
Indigo (survey)
#380282
ΔE00 5.79
Royal Purple (survey)
#4B006E
ΔE00 6.22
Indigo
#4B0082
ΔE00 6.26
Dark Indigo
#1F0954
ΔE00 6.41
Dark Royal Blue
#02066F
ΔE00 7.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#381E6F #556F1E
analogous
#1E2D6F #381E6F #601E6F
triadic
#381E6F #6F381E #1E6F38
tetradic
#381E6F #6F1E2D #556F1E #1E6F60
square
#381E6F #6F1E2D #556F1E #1E6F60
split-complementary
#381E6F #6F601E #2D6F1E
monochromatic
#0C0718 #20113F #381E6F #502B9F #6A3DCB
Accessibility & contrast
On white
13.26
#381E6F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#381E6F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #381E6F
13.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##381E6F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##381E6F | 1.00 | 13.26 | 1.58 | 13.26 |
| #FFFFFF | 13.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#002E6D
Tritanopia (blue-blind)
#273244
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #381e6f; /* rgb */ color: rgb(56, 30, 111); /* oklch */ color: oklch(32.2% 0.131 292.1);
Tailwind
colors: {
custom: {
50: '#745c99',
500: '#381e6f',
950: '#000000',
},
}SCSS
$custom: #381e6f; $custom-light: #745c99; $custom-dark: #000000;
JSON
{
"hex": "#381e6f",
"rgb": {
"r": 56,
"g": 30,
"b": 111
},
"hsl": {
"h": 259.259,
"s": 57.447,
"l": 27.647
},
"oklch": {
"l": 0.32232,
"c": 0.13143,
"h": 292.1
},
"luminance": 0.02917
}Semantic roles & 50–950 ramp
primary
#381E6F
secondary
#85A346
accent
#E147AF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E