#381D8C#381D8C
#381D8C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.169 H 284.7°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).
Color values
| HEX | #381D8C |
|---|---|
| RGB | rgb(56, 29, 140) |
| HSL | hsl(255, 66%, 33%) |
| HSV | hsv(255, 79%, 55%) |
| CMYK | cmyk(60%, 79.3%, 0%, 45.1%) |
| CIE-LAB | lab(22.35, 42.31, -56.59) |
| CIE-LCH | lch(22.35, 70.65, 306.78°) |
| OKLab | oklab(34.96% 0.0429 -0.1631) |
| OKLCH | oklch(34.96% 0.169 284.7) |
| XYZ | xyz(6.8024, 3.6125, 25.1447) |
| Luminance | 0.0361 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.17
Indigo (survey)
#380282
ΔE00 4.22
Indigo Blue
#3A18B1
ΔE00 5.20
Indigo
#4B0082
ΔE00 5.35
Cobalt Blue
#030AA7
ΔE00 5.60
Midnight Blue
#191970
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#381D8C #718C1D
analogous
#1D398C #381D8C #6F1D8C
triadic
#381D8C #8C381D #1D8C38
tetradic
#381D8C #8C1D39 #718C1D #1D8C6F
square
#381D8C #8C1D39 #718C1D #1D8C6F
split-complementary
#381D8C #8C6F1D #398C1D
monochromatic
#0F0827 #241259 #381D8C #4C28BF #6D4AD9
Accessibility & contrast
On white
12.19
#381D8C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#381D8C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #381D8C
12.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##381D8C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##381D8C | 1.00 | 12.19 | 1.72 | 12.19 |
| #FFFFFF | 12.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.19 | 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: #381d8c; /* rgb */ color: rgb(56, 29, 140); /* oklch */ color: oklch(35.0% 0.169 284.7);
Tailwind
colors: {
custom: {
50: '#7a5daf',
500: '#381d8c',
950: '#000000',
},
}SCSS
$custom: #381d8c; $custom-light: #7a5daf; $custom-dark: #000000;
JSON
{
"hex": "#381d8c",
"rgb": {
"r": 56,
"g": 29,
"b": 140
},
"hsl": {
"h": 254.595,
"s": 65.68,
"l": 33.137
},
"oklch": {
"l": 0.34956,
"c": 0.1686,
"h": 284.7
},
"luminance": 0.03613
}Semantic roles & 50–950 ramp
primary
#381D8C
secondary
#A0BC49
accent
#E93FBF
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F