#381C8C#381C8C
#381C8C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.170 H 284.9°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).
Color values
| HEX | #381C8C |
|---|---|
| RGB | rgb(56, 28, 140) |
| HSL | hsl(255, 67%, 33%) |
| HSV | hsv(255, 80%, 55%) |
| CMYK | cmyk(60%, 80%, 0%, 45.1%) |
| CIE-LAB | lab(22.18, 42.80, -56.87) |
| CIE-LCH | lch(22.18, 71.18, 306.96°) |
| OKLab | oklab(34.84% 0.0435 -0.1639) |
| OKLCH | oklch(34.84% 0.17 284.9) |
| XYZ | xyz(6.7783, 3.5643, 25.1367) |
| Luminance | 0.0357 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.02
Royal
#0C1793
ΔE00 4.13
Indigo Blue
#3A18B1
ΔE00 5.17
Indigo
#4B0082
ΔE00 5.20
Cobalt Blue
#030AA7
ΔE00 5.51
Midnight Blue
#191970
ΔE00 5.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#381C8C #708C1C
analogous
#1C388C #381C8C #701C8C
triadic
#381C8C #8C381C #1C8C38
tetradic
#381C8C #8C1C38 #708C1C #1C8C70
square
#381C8C #8C1C38 #708C1C #1C8C70
split-complementary
#381C8C #8C701C #388C1C
monochromatic
#0F0826 #241259 #381C8C #4C26BF #6D48DA
Accessibility & contrast
On white
12.26
#381C8C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#381C8C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #381C8C
12.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##381C8C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##381C8C | 1.00 | 12.26 | 1.71 | 12.26 |
| #FFFFFF | 12.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#00328A
Tritanopia (blue-blind)
#063D54
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #381c8c; /* rgb */ color: rgb(56, 28, 140); /* oklch */ color: oklch(34.8% 0.170 284.9);
Tailwind
colors: {
custom: {
50: '#7a5caf',
500: '#381c8c',
950: '#000000',
},
}SCSS
$custom: #381c8c; $custom-light: #7a5caf; $custom-dark: #000000;
JSON
{
"hex": "#381c8c",
"rgb": {
"r": 56,
"g": 28,
"b": 140
},
"hsl": {
"h": 255,
"s": 66.667,
"l": 32.941
},
"oklch": {
"l": 0.34837,
"c": 0.16956,
"h": 284.9
},
"luminance": 0.03565
}Semantic roles & 50–950 ramp
primary
#381C8C
secondary
#9FBC48
accent
#EA3EBF
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F