#381B80#381B80
#381B80 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.156 H 287.9°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).
Color values
| HEX | #381B80 |
|---|---|
| RGB | rgb(56, 27, 128) |
| HSL | hsl(257, 65%, 30%) |
| HSV | hsv(257, 79%, 50%) |
| CMYK | cmyk(56.3%, 78.9%, 0%, 49.8%) |
| CIE-LAB | lab(20.76, 39.72, -51.66) |
| CIE-LCH | lch(20.76, 65.16, 307.56°) |
| OKLab | oklab(33.48% 0.0479 -0.1486) |
| OKLCH | oklch(33.48% 0.156 287.9) |
| XYZ | xyz(5.9179, 3.1828, 20.7204) |
| Luminance | 0.0318 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.66
Indigo
#4B0082
ΔE00 4.78
Midnight Blue
#191970
ΔE00 4.84
Royal
#0C1793
ΔE00 5.11
Darkblue
#00008B
ΔE00 6.34
Navy
#000080
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#381B80 #63801B
analogous
#1B3080 #381B80 #6A1B80
triadic
#381B80 #80381B #1B8038
tetradic
#381B80 #801B30 #63801B #1B806A
square
#381B80 #801B30 #63801B #1B806A
split-complementary
#381B80 #806A1B #30801B
monochromatic
#0C061B #22104D #381B80 #4E26B3 #6A3FD6
Accessibility & contrast
On white
12.83
#381B80 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#381B80 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #381B80
12.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##381B80 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##381B80 | 1.00 | 12.83 | 1.64 | 12.83 |
| #FFFFFF | 12.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#1A384D
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #381b80; /* rgb */ color: rgb(56, 27, 128); /* oklch */ color: oklch(33.5% 0.156 287.9);
Tailwind
colors: {
custom: {
50: '#785ba6',
500: '#381b80',
950: '#000000',
},
}SCSS
$custom: #381b80; $custom-light: #785ba6; $custom-dark: #000000;
JSON
{
"hex": "#381b80",
"rgb": {
"r": 56,
"g": 27,
"b": 128
},
"hsl": {
"h": 257.228,
"s": 65.161,
"l": 30.392
},
"oklch": {
"l": 0.33476,
"c": 0.15615,
"h": 287.9
},
"luminance": 0.03183
}Semantic roles & 50–950 ramp
primary
#381B80
secondary
#93B443
accent
#E840B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F