#381E8A#381E8A
#381E8A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.165 H 285.0°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).
Color values
| HEX | #381E8A |
|---|---|
| RGB | rgb(56, 30, 138) |
| HSL | hsl(254, 64%, 33%) |
| HSV | hsv(254, 78%, 54%) |
| CMYK | cmyk(59.4%, 78.3%, 0%, 45.9%) |
| CIE-LAB | lab(22.32, 41.20, -55.39) |
| CIE-LCH | lch(22.32, 69.03, 306.64°) |
| OKLab | oklab(34.87% 0.0427 -0.1596) |
| OKLCH | oklch(34.87% 0.165 285) |
| XYZ | xyz(6.6812, 3.6039, 24.3834) |
| Luminance | 0.0360 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.33
Indigo (survey)
#380282
ΔE00 4.34
Indigo
#4B0082
ΔE00 5.43
Indigo Blue
#3A18B1
ΔE00 5.53
Midnight Blue
#191970
ΔE00 5.59
Cobalt Blue
#030AA7
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#381E8A #708A1E
analogous
#1E3A8A #381E8A #6E1E8A
triadic
#381E8A #8A381E #1E8A38
tetradic
#381E8A #8A1E3A #708A1E #1E8A6E
square
#381E8A #8A1E3A #708A1E #1E8A6E
split-complementary
#381E8A #8A6E1E #3A8A1E
monochromatic
#0F0825 #241358 #381E8A #4C29BC #6D4BD8
Accessibility & contrast
On white
12.20
#381E8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#381E8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #381E8A
12.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##381E8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##381E8A | 1.00 | 12.20 | 1.72 | 12.20 |
| #FFFFFF | 12.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#0B3D53
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #381e8a; /* rgb */ color: rgb(56, 30, 138); /* oklch */ color: oklch(34.9% 0.165 285.0);
Tailwind
colors: {
custom: {
50: '#795dad',
500: '#381e8a',
950: '#000000',
},
}SCSS
$custom: #381e8a; $custom-light: #795dad; $custom-dark: #000000;
JSON
{
"hex": "#381e8a",
"rgb": {
"r": 56,
"g": 30,
"b": 138
},
"hsl": {
"h": 254.444,
"s": 64.286,
"l": 32.941
},
"oklch": {
"l": 0.34872,
"c": 0.16519,
"h": 285
},
"luminance": 0.03604
}Semantic roles & 50–950 ramp
primary
#381E8A
secondary
#9FBA4A
accent
#E741BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F