#381C9E#381C9E
#381C9E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.8% C 0.191 H 281.4°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).
Color values
| HEX | #381C9E |
|---|---|
| RGB | rgb(56, 28, 158) |
| HSL | hsl(253, 70%, 36%) |
| HSV | hsv(253, 82%, 62%) |
| CMYK | cmyk(64.6%, 82.3%, 0%, 38%) |
| CIE-LAB | lab(24.13, 48.12, -64.76) |
| CIE-LCH | lch(24.13, 80.68, 306.61°) |
| OKLab | oklab(36.77% 0.0378 -0.1869) |
| OKLCH | oklch(36.77% 0.191 281.4) |
| XYZ | xyz(8.2158, 4.1393, 32.7071) |
| Luminance | 0.0414 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.59
Ultramarine
#2000B1
ΔE00 4.15
Royal
#0C1793
ΔE00 4.19
Cobalt Blue
#030AA7
ΔE00 4.22
Royal Blue (survey)
#0504AA
ΔE00 4.49
Indigo (survey)
#380282
ΔE00 5.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#381C9E #829E1C
analogous
#1C419E #381C9E #791C9E
triadic
#381C9E #9E381C #1C9E38
tetradic
#381C9E #9E1C41 #829E1C #1C9E79
square
#381C9E #9E1C41 #829E1C #1C9E79
split-complementary
#381C9E #9E791C #419E1C
monochromatic
#130A36 #26136A #381C9E #4A25D2 #7254E1
Accessibility & contrast
On white
11.49
#381C9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#381C9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #381C9E
11.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##381C9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##381C9E | 1.00 | 11.49 | 1.83 | 11.49 |
| #FFFFFF | 11.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00359C
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #381c9e; /* rgb */ color: rgb(56, 28, 158); /* oklch */ color: oklch(36.8% 0.191 281.4);
Tailwind
colors: {
custom: {
50: '#7d5ebc',
500: '#381c9e',
950: '#000000',
},
}SCSS
$custom: #381c9e; $custom-light: #7d5ebc; $custom-dark: #000000;
JSON
{
"hex": "#381c9e",
"rgb": {
"r": 56,
"g": 28,
"b": 158
},
"hsl": {
"h": 252.923,
"s": 69.892,
"l": 36.471
},
"oklch": {
"l": 0.36769,
"c": 0.19065,
"h": 281.4
},
"luminance": 0.0414
}Semantic roles & 50–950 ramp
primary
#381C9E
secondary
#ABC452
accent
#ED3BC6
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981