#381F6F#381F6F
#381F6F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.4% C 0.130 H 291.8°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).
Color values
| HEX | #381F6F |
|---|---|
| RGB | rgb(56, 31, 111) |
| HSL | hsl(259, 56%, 28%) |
| HSV | hsv(259, 72%, 44%) |
| CMYK | cmyk(49.5%, 72.1%, 0%, 56.5%) |
| CIE-LAB | lab(19.92, 32.40, -42.16) |
| CIE-LCH | lch(19.92, 53.17, 307.55°) |
| OKLab | oklab(32.38% 0.0484 -0.1208) |
| OKLCH | oklch(32.38% 0.13 291.8) |
| XYZ | xyz(4.9893, 2.9682, 15.3459) |
| Luminance | 0.0297 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.84
Indigo (survey)
#380282
ΔE00 6.01
Royal Purple (survey)
#4B006E
ΔE00 6.44
Indigo
#4B0082
ΔE00 6.47
Dark Indigo
#1F0954
ΔE00 6.54
Dark Royal Blue
#02066F
ΔE00 7.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#381F6F #566F1F
analogous
#1F2E6F #381F6F #601F6F
triadic
#381F6F #6F381F #1F6F38
tetradic
#381F6F #6F1F2E #566F1F #1F6F60
square
#381F6F #6F1F2E #566F1F #1F6F60
split-complementary
#381F6F #6F601F #2E6F1F
monochromatic
#0C0718 #20123F #381F6F #502C9F #6A3FC9
Accessibility & contrast
On white
13.18
#381F6F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#381F6F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #381F6F
13.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##381F6F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##381F6F | 1.00 | 13.18 | 1.59 | 13.18 |
| #FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#002E6D
Tritanopia (blue-blind)
#273344
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #381f6f; /* rgb */ color: rgb(56, 31, 111); /* oklch */ color: oklch(32.4% 0.130 291.8);
Tailwind
colors: {
custom: {
50: '#745d99',
500: '#381f6f',
950: '#000000',
},
}SCSS
$custom: #381f6f; $custom-light: #745d99; $custom-dark: #000000;
JSON
{
"hex": "#381f6f",
"rgb": {
"r": 56,
"g": 31,
"b": 111
},
"hsl": {
"h": 258.75,
"s": 56.338,
"l": 27.843
},
"oklch": {
"l": 0.32381,
"c": 0.13011,
"h": 291.8
},
"luminance": 0.02968
}Semantic roles & 50–950 ramp
primary
#381F6F
secondary
#86A347
accent
#E048B0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E