#381D9C#381D9C
#381D9C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.188 H 281.7°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).
Color values
| HEX | #381D9C |
|---|---|
| RGB | rgb(56, 29, 156) |
| HSL | hsl(253, 69%, 36%) |
| HSV | hsv(253, 81%, 61%) |
| CMYK | cmyk(64.1%, 81.4%, 0%, 38.8%) |
| CIE-LAB | lab(24.06, 47.07, -63.64) |
| CIE-LCH | lch(24.06, 79.16, 306.49°) |
| OKLab | oklab(36.66% 0.0379 -0.1836) |
| OKLCH | oklch(36.66% 0.188 281.7) |
| XYZ | xyz(8.0691, 4.1192, 31.8159) |
| Luminance | 0.0412 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.89
Royal
#0C1793
ΔE00 4.13
Cobalt Blue
#030AA7
ΔE00 4.39
Ultramarine
#2000B1
ΔE00 4.42
Royal Blue (survey)
#0504AA
ΔE00 4.69
Indigo (survey)
#380282
ΔE00 5.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#381D9C #819C1D
analogous
#1D429C #381D9C #781D9C
triadic
#381D9C #9C381D #1D9C38
tetradic
#381D9C #9C1D42 #819C1D #1D9C78
square
#381D9C #9C1D42 #819C1D #1D9C78
split-complementary
#381D9C #9C781D #429C1D
monochromatic
#130A35 #251368 #381D9C #4B27D0 #7254DF
Accessibility & contrast
On white
11.51
#381D9C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#381D9C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #381D9C
11.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##381D9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##381D9C | 1.00 | 11.51 | 1.82 | 11.51 |
| #FFFFFF | 11.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D9F
Deuteranopia (green-blind)
#00359A
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #381d9c; /* rgb */ color: rgb(56, 29, 156); /* oklch */ color: oklch(36.7% 0.188 281.7);
Tailwind
colors: {
custom: {
50: '#7d5eba',
500: '#381d9c',
950: '#000000',
},
}SCSS
$custom: #381d9c; $custom-light: #7d5eba; $custom-dark: #000000;
JSON
{
"hex": "#381d9c",
"rgb": {
"r": 56,
"g": 29,
"b": 156
},
"hsl": {
"h": 252.756,
"s": 68.649,
"l": 36.275
},
"oklch": {
"l": 0.36659,
"c": 0.1875,
"h": 281.7
},
"luminance": 0.0412
}Semantic roles & 50–950 ramp
primary
#381D9C
secondary
#ABC252
accent
#EB3CC6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981