#381A8B#381A8B
#381A8B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.170 H 285.4°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).
Color values
| HEX | #381A8B |
|---|---|
| RGB | rgb(56, 26, 139) |
| HSL | hsl(256, 68%, 32%) |
| HSV | hsv(256, 81%, 55%) |
| CMYK | cmyk(59.7%, 81.3%, 0%, 45.5%) |
| CIE-LAB | lab(21.74, 43.46, -56.97) |
| CIE-LCH | lch(21.74, 71.65, 307.34°) |
| OKLab | oklab(34.5% 0.0452 -0.1641) |
| OKLCH | oklch(34.5% 0.17 285.4) |
| XYZ | xyz(6.6591, 3.4432, 24.7348) |
| Luminance | 0.0344 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.60
Royal
#0C1793
ΔE00 4.14
Indigo
#4B0082
ΔE00 4.87
Indigo Blue
#3A18B1
ΔE00 5.30
Cobalt Blue
#030AA7
ΔE00 5.46
Midnight Blue
#191970
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#381A8B #6D8B1A
analogous
#1A358B #381A8B #701A8B
triadic
#381A8B #8B381A #1A8B38
tetradic
#381A8B #8B1A35 #6D8B1A #1A8B70
square
#381A8B #8B1A35 #6D8B1A #1A8B70
split-complementary
#381A8B #8B701A #358B1A
monochromatic
#0E0724 #231057 #381A8B #4D24BF #6C43DC
Accessibility & contrast
On white
12.43
#381A8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#381A8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #381A8B
12.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##381A8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##381A8B | 1.00 | 12.43 | 1.69 | 12.43 |
| #FFFFFF | 12.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#093C53
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #381a8b; /* rgb */ color: rgb(56, 26, 139); /* oklch */ color: oklch(34.5% 0.170 285.4);
Tailwind
colors: {
custom: {
50: '#7a5bae',
500: '#381a8b',
950: '#000000',
},
}SCSS
$custom: #381a8b; $custom-light: #7a5bae; $custom-dark: #000000;
JSON
{
"hex": "#381a8b",
"rgb": {
"r": 56,
"g": 26,
"b": 139
},
"hsl": {
"h": 255.929,
"s": 68.485,
"l": 32.353
},
"oklch": {
"l": 0.34501,
"c": 0.17023,
"h": 285.4
},
"luminance": 0.03444
}Semantic roles & 50–950 ramp
primary
#381A8B
secondary
#9DBD44
accent
#EB3CBD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F