#382A7E#382A7E
#382A7E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.5% C 0.135 H 284.8°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).
Color values
| HEX | #382A7E |
|---|---|
| RGB | rgb(56, 42, 126) |
| HSL | hsl(250, 50%, 33%) |
| HSV | hsv(250, 67%, 49%) |
| CMYK | cmyk(55.6%, 66.7%, 0%, 50.6%) |
| CIE-LAB | lab(23.68, 30.49, -45.61) |
| CIE-LCH | lch(23.68, 54.87, 303.76°) |
| OKLab | oklab(35.5% 0.0345 -0.1309) |
| OKLCH | oklch(35.5% 0.135 284.8) |
| XYZ | xyz(6.2236, 4.0027, 20.1793) |
| Luminance | 0.0400 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 5.62
Darkslateblue
#483D8B
ΔE00 5.63
Royal
#0C1793
ΔE00 6.91
Blueberry
#464196
ΔE00 7.08
Indigo (survey)
#380282
ΔE00 7.58
Indigo
#4B0082
ΔE00 8.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#382A7E #707E2A
analogous
#2A467E #382A7E #622A7E
triadic
#382A7E #7E382A #2A7E38
tetradic
#382A7E #7E2A46 #707E2A #2A7E62
square
#382A7E #7E2A46 #707E2A #2A7E62
split-complementary
#382A7E #7E622A #467E2A
monochromatic
#0F0B22 #241B50 #382A7E #4C39AC #6D5AC8
Accessibility & contrast
On white
11.66
#382A7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#382A7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #382A7E
11.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##382A7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##382A7E | 1.00 | 11.66 | 1.80 | 11.66 |
| #FFFFFF | 11.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#1A3F50
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #382a7e; /* rgb */ color: rgb(56, 42, 126); /* oklch */ color: oklch(35.5% 0.135 284.8);
Tailwind
colors: {
custom: {
50: '#7664a4',
500: '#382a7e',
950: '#000000',
},
}SCSS
$custom: #382a7e; $custom-light: #7664a4; $custom-dark: #000000;
JSON
{
"hex": "#382a7e",
"rgb": {
"r": 56,
"g": 42,
"b": 126
},
"hsl": {
"h": 250,
"s": 50,
"l": 32.941
},
"oklch": {
"l": 0.355,
"c": 0.13543,
"h": 284.8
},
"luminance": 0.04003
}Semantic roles & 50–950 ramp
primary
#382A7E
secondary
#9FAE56
accent
#DA4EC2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09050F
muted
#7B7A7F