#381B86#381B86
#381B86 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.163 H 286.4°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).
Color values
| HEX | #381B86 |
|---|---|
| RGB | rgb(56, 27, 134) |
| HSL | hsl(256, 66%, 32%) |
| HSV | hsv(256, 80%, 53%) |
| CMYK | cmyk(58.2%, 79.9%, 0%, 47.5%) |
| CIE-LAB | lab(21.38, 41.50, -54.43) |
| CIE-LCH | lch(21.38, 68.45, 307.33°) |
| OKLab | oklab(34.09% 0.0461 -0.1567) |
| OKLCH | oklch(34.09% 0.163 286.4) |
| XYZ | xyz(6.3246, 3.3455, 22.8621) |
| Luminance | 0.0335 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.62
Royal
#0C1793
ΔE00 4.52
Indigo
#4B0082
ΔE00 4.83
Midnight Blue
#191970
ΔE00 5.27
Darkblue
#00008B
ΔE00 6.02
Indigo Blue
#3A18B1
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#381B86 #69861B
analogous
#1B3386 #381B86 #6E1B86
triadic
#381B86 #86381B #1B8638
tetradic
#381B86 #861B33 #69861B #1B866E
square
#381B86 #861B33 #69861B #1B866E
split-complementary
#381B86 #866E1B #33861B
monochromatic
#0D0620 #231153 #381B86 #4D25B9 #6B42D9
Accessibility & contrast
On white
12.58
#381B86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#381B86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #381B86
12.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##381B86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##381B86 | 1.00 | 12.58 | 1.67 | 12.58 |
| #FFFFFF | 12.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#003084
Tritanopia (blue-blind)
#123A50
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #381b86; /* rgb */ color: rgb(56, 27, 134); /* oklch */ color: oklch(34.1% 0.163 286.4);
Tailwind
colors: {
custom: {
50: '#795baa',
500: '#381b86',
950: '#000000',
},
}SCSS
$custom: #381b86; $custom-light: #795baa; $custom-dark: #000000;
JSON
{
"hex": "#381b86",
"rgb": {
"r": 56,
"g": 27,
"b": 134
},
"hsl": {
"h": 256.262,
"s": 66.46,
"l": 31.569
},
"oklch": {
"l": 0.34092,
"c": 0.16336,
"h": 286.4
},
"luminance": 0.03346
}Semantic roles & 50–950 ramp
primary
#381B86
secondary
#99B944
accent
#E93EBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F