#381A9F#381A9F
#381A9F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.193 H 281.5°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).
Color values
| HEX | #381A9F |
|---|---|
| RGB | rgb(56, 26, 159) |
| HSL | hsl(254, 72%, 36%) |
| HSV | hsv(254, 84%, 62%) |
| CMYK | cmyk(64.8%, 83.6%, 0%, 37.6%) |
| CIE-LAB | lab(23.94, 49.28, -65.68) |
| CIE-LCH | lch(23.94, 82.11, 306.88°) |
| OKLab | oklab(36.68% 0.0384 -0.1895) |
| OKLCH | oklch(36.68% 0.193 281.5) |
| XYZ | xyz(8.2563, 4.0821, 33.1470) |
| Luminance | 0.0408 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.43
Ultramarine
#2000B1
ΔE00 3.84
Cobalt Blue
#030AA7
ΔE00 4.01
Royal
#0C1793
ΔE00 4.20
Royal Blue (survey)
#0504AA
ΔE00 4.24
Indigo (survey)
#380282
ΔE00 5.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#381A9F #819F1A
analogous
#1A3F9F #381A9F #7B1A9F
triadic
#381A9F #9F381A #1A9F38
tetradic
#381A9F #9F1A3F #819F1A #1A9F7B
square
#381A9F #9F1A3F #819F1A #1A9F7B
split-complementary
#381A9F #9F7B1A #3F9F1A
monochromatic
#130936 #25116A #381A9F #4B23D4 #7251E3
Accessibility & contrast
On white
11.56
#381A9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#381A9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #381A9F
11.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##381A9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##381A9F | 1.00 | 11.56 | 1.82 | 11.56 |
| #FFFFFF | 11.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00349D
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #381a9f; /* rgb */ color: rgb(56, 26, 159); /* oklch */ color: oklch(36.7% 0.193 281.5);
Tailwind
colors: {
custom: {
50: '#7e5dbd',
500: '#381a9f',
950: '#000000',
},
}SCSS
$custom: #381a9f; $custom-light: #7e5dbd; $custom-dark: #000000;
JSON
{
"hex": "#381a9f",
"rgb": {
"r": 56,
"g": 26,
"b": 159
},
"hsl": {
"h": 253.534,
"s": 71.892,
"l": 36.275
},
"oklch": {
"l": 0.36675,
"c": 0.19337,
"h": 281.5
},
"luminance": 0.04083
}Semantic roles & 50–950 ramp
primary
#381A9F
secondary
#ABC550
accent
#EF39C6
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981