#381CAD#381CAD
#381CAD is a dark, highly saturated violet. Relative luminance 0.047; OKLCH L 38.4% C 0.208 H 279.1°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).
Color values
| HEX | #381CAD |
|---|---|
| RGB | rgb(56, 28, 173) |
| HSL | hsl(252, 72%, 39%) |
| HSV | hsv(252, 84%, 68%) |
| CMYK | cmyk(67.6%, 83.8%, 0%, 32.2%) |
| CIE-LAB | lab(25.83, 52.46, -71.04) |
| CIE-LCH | lch(25.83, 88.31, 306.44°) |
| OKLab | oklab(38.44% 0.0328 -0.2051) |
| OKLCH | oklch(38.44% 0.208 279.1) |
| XYZ | xyz(9.5865, 4.6876, 39.9267) |
| Luminance | 0.0469 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 0.78
Ultramarine
#2000B1
ΔE00 3.64
True Blue
#010FCC
ΔE00 4.22
Cobalt Blue
#030AA7
ΔE00 4.36
Royal Blue (survey)
#0504AA
ΔE00 4.48
Mediumblue
#0000CD
ΔE00 4.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#381CAD #91AD1C
analogous
#1C49AD #381CAD #811CAD
triadic
#381CAD #AD381C #1CAD38
tetradic
#381CAD #AD1C49 #91AD1C #1CAD81
square
#381CAD #AD1C49 #91AD1C #1CAD81
split-complementary
#381CAD #AD811C #49AD1C
monochromatic
#160B44 #271378 #381CAD #4C2ADC #785EE5
Accessibility & contrast
On white
10.84
#381CAD on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.94
#381CAD on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #381CAD
10.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##381CAD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##381CAD | 1.00 | 10.84 | 1.94 | 10.84 |
| #FFFFFF | 10.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0042B1
Deuteranopia (green-blind)
#0037AB
Tritanopia (blue-blind)
#004A67
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #381cad; /* rgb */ color: rgb(56, 28, 173); /* oklch */ color: oklch(38.4% 0.208 279.1);
Tailwind
colors: {
custom: {
50: '#805fc7',
500: '#381cad',
950: '#000000',
},
}SCSS
$custom: #381cad; $custom-light: #805fc7; $custom-dark: #000000;
JSON
{
"hex": "#381cad",
"rgb": {
"r": 56,
"g": 28,
"b": 173
},
"hsl": {
"h": 251.586,
"s": 72.139,
"l": 39.412
},
"oklch": {
"l": 0.38437,
"c": 0.20774,
"h": 279.1
},
"luminance": 0.04688
}Semantic roles & 50–950 ramp
primary
#381CAD
secondary
#B4C95C
accent
#EF39CC
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982