#381B81#381B81
#381B81 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.157 H 287.6°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).
Color values
| HEX | #381B81 |
|---|---|
| RGB | rgb(56, 27, 129) |
| HSL | hsl(257, 65%, 31%) |
| HSV | hsv(257, 79%, 51%) |
| CMYK | cmyk(56.6%, 79.1%, 0%, 49.4%) |
| CIE-LAB | lab(20.86, 40.02, -52.12) |
| CIE-LCH | lch(20.86, 65.71, 307.51°) |
| OKLab | oklab(33.58% 0.0476 -0.15) |
| OKLCH | oklch(33.58% 0.157 287.6) |
| XYZ | xyz(5.9841, 3.2093, 21.0688) |
| Luminance | 0.0321 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.64
Indigo
#4B0082
ΔE00 4.77
Midnight Blue
#191970
ΔE00 4.90
Royal
#0C1793
ΔE00 5.00
Darkblue
#00008B
ΔE00 6.27
Navy
#000080
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#381B81 #64811B
analogous
#1B3181 #381B81 #6B1B81
triadic
#381B81 #81381B #1B8138
tetradic
#381B81 #811B31 #64811B #1B816B
square
#381B81 #811B31 #64811B #1B816B
split-complementary
#381B81 #816B1B #31811B
monochromatic
#0C061C #22104E #381B81 #4E26B4 #6B3FD7
Accessibility & contrast
On white
12.79
#381B81 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#381B81 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #381B81
12.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##381B81 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##381B81 | 1.00 | 12.79 | 1.64 | 12.79 |
| #FFFFFF | 12.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002F7F
Tritanopia (blue-blind)
#19384D
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #381b81; /* rgb */ color: rgb(56, 27, 129); /* oklch */ color: oklch(33.6% 0.157 287.6);
Tailwind
colors: {
custom: {
50: '#785ba7',
500: '#381b81',
950: '#000000',
},
}SCSS
$custom: #381b81; $custom-light: #785ba7; $custom-dark: #000000;
JSON
{
"hex": "#381b81",
"rgb": {
"r": 56,
"g": 27,
"b": 129
},
"hsl": {
"h": 257.059,
"s": 65.385,
"l": 30.588
},
"oklch": {
"l": 0.33578,
"c": 0.15736,
"h": 287.6
},
"luminance": 0.0321
}Semantic roles & 50–950 ramp
primary
#381B81
secondary
#94B543
accent
#E83FB8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F