#381B9F#381B9F
#381B9F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.8% C 0.193 H 281.4°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).
Color values
| HEX | #381B9F |
|---|---|
| RGB | rgb(56, 27, 159) |
| HSL | hsl(253, 71%, 36%) |
| HSV | hsv(253, 83%, 62%) |
| CMYK | cmyk(64.8%, 83%, 0%, 37.6%) |
| CIE-LAB | lab(24.09, 48.85, -65.44) |
| CIE-LCH | lch(24.09, 81.66, 306.74°) |
| OKLab | oklab(36.78% 0.0379 -0.1888) |
| OKLCH | oklch(36.78% 0.193 281.4) |
| XYZ | xyz(8.2789, 4.1272, 33.1545) |
| Luminance | 0.0413 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.44
Ultramarine
#2000B1
ΔE00 3.96
Cobalt Blue
#030AA7
ΔE00 4.10
Royal
#0C1793
ΔE00 4.22
Royal Blue (survey)
#0504AA
ΔE00 4.34
Indigo (survey)
#380282
ΔE00 5.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#381B9F #829F1B
analogous
#1B409F #381B9F #7A1B9F
triadic
#381B9F #9F381B #1B9F38
tetradic
#381B9F #9F1B40 #829F1B #1B9F7A
square
#381B9F #9F1B40 #829F1B #1B9F7A
split-complementary
#381B9F #9F7A1B #409F1B
monochromatic
#130936 #26126B #381B9F #4A24D3 #7253E2
Accessibility & contrast
On white
11.50
#381B9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#381B9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #381B9F
11.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##381B9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##381B9F | 1.00 | 11.50 | 1.83 | 11.50 |
| #FFFFFF | 11.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00349D
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #381b9f; /* rgb */ color: rgb(56, 27, 159); /* oklch */ color: oklch(36.8% 0.193 281.4);
Tailwind
colors: {
custom: {
50: '#7d5dbd',
500: '#381b9f',
950: '#000000',
},
}SCSS
$custom: #381b9f; $custom-light: #7d5dbd; $custom-dark: #000000;
JSON
{
"hex": "#381b9f",
"rgb": {
"r": 56,
"g": 27,
"b": 159
},
"hsl": {
"h": 253.182,
"s": 70.968,
"l": 36.471
},
"oklch": {
"l": 0.36775,
"c": 0.19259,
"h": 281.4
},
"luminance": 0.04128
}Semantic roles & 50–950 ramp
primary
#381B9F
secondary
#ABC551
accent
#EE3AC6
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981