#381F8A#381F8A
#381F8A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.164 H 284.8°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).
Color values
| HEX | #381F8A |
|---|---|
| RGB | rgb(56, 31, 138) |
| HSL | hsl(254, 63%, 33%) |
| HSV | hsv(254, 78%, 54%) |
| CMYK | cmyk(59.4%, 77.5%, 0%, 45.9%) |
| CIE-LAB | lab(22.50, 40.68, -55.09) |
| CIE-LCH | lch(22.50, 68.48, 306.44°) |
| OKLab | oklab(35% 0.042 -0.1587) |
| OKLCH | oklch(35% 0.164 284.8) |
| XYZ | xyz(6.7069, 3.6553, 24.3920) |
| Luminance | 0.0366 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.39
Indigo (survey)
#380282
ΔE00 4.55
Indigo Blue
#3A18B1
ΔE00 5.57
Midnight Blue
#191970
ΔE00 5.58
Indigo
#4B0082
ΔE00 5.61
Cobalt Blue
#030AA7
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#381F8A #718A1F
analogous
#1F3B8A #381F8A #6D1F8A
triadic
#381F8A #8A381F #1F8A38
tetradic
#381F8A #8A1F3B #718A1F #1F8A6D
square
#381F8A #8A1F3B #718A1F #1F8A6D
split-complementary
#381F8A #8A6D1F #3B8A1F
monochromatic
#0F0926 #241458 #381F8A #4C2ABC #6D4CD7
Accessibility & contrast
On white
12.13
#381F8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#381F8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #381F8A
12.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##381F8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##381F8A | 1.00 | 12.13 | 1.73 | 12.13 |
| #FFFFFF | 12.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#0A3D53
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #381f8a; /* rgb */ color: rgb(56, 31, 138); /* oklch */ color: oklch(35.0% 0.164 284.8);
Tailwind
colors: {
custom: {
50: '#795ead',
500: '#381f8a',
950: '#000000',
},
}SCSS
$custom: #381f8a; $custom-light: #795ead; $custom-dark: #000000;
JSON
{
"hex": "#381f8a",
"rgb": {
"r": 56,
"g": 31,
"b": 138
},
"hsl": {
"h": 254.019,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.35,
"c": 0.16417,
"h": 284.8
},
"luminance": 0.03656
}Semantic roles & 50–950 ramp
primary
#381F8A
secondary
#A0BA4B
accent
#E641C0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F