#381B88#381B88
#381B88 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.166 H 285.9°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).
Color values
| HEX | #381B88 |
|---|---|
| RGB | rgb(56, 27, 136) |
| HSL | hsl(256, 67%, 32%) |
| HSV | hsv(256, 80%, 53%) |
| CMYK | cmyk(58.8%, 80.1%, 0%, 46.7%) |
| CIE-LAB | lab(21.59, 42.10, -55.34) |
| CIE-LCH | lch(21.59, 69.53, 307.26°) |
| OKLab | oklab(34.3% 0.0455 -0.1594) |
| OKLCH | oklch(34.3% 0.166 285.9) |
| XYZ | xyz(6.4654, 3.4018, 23.6037) |
| Luminance | 0.0340 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.67
Royal
#0C1793
ΔE00 4.36
Indigo
#4B0082
ΔE00 4.89
Midnight Blue
#191970
ΔE00 5.45
Indigo Blue
#3A18B1
ΔE00 5.77
Cobalt Blue
#030AA7
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#381B88 #6B881B
analogous
#1B3588 #381B88 #6F1B88
triadic
#381B88 #88381B #1B8838
tetradic
#381B88 #881B35 #6B881B #1B886F
square
#381B88 #881B35 #6B881B #1B886F
split-complementary
#381B88 #886F1B #35881B
monochromatic
#0E0722 #231155 #381B88 #4D25BB #6C44DA
Accessibility & contrast
On white
12.50
#381B88 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#381B88 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #381B88
12.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##381B88 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##381B88 | 1.00 | 12.50 | 1.68 | 12.50 |
| #FFFFFF | 12.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#003086
Tritanopia (blue-blind)
#0F3B51
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #381b88; /* rgb */ color: rgb(56, 27, 136); /* oklch */ color: oklch(34.3% 0.166 285.9);
Tailwind
colors: {
custom: {
50: '#795cac',
500: '#381b88',
950: '#000000',
},
}SCSS
$custom: #381b88; $custom-light: #795cac; $custom-dark: #000000;
JSON
{
"hex": "#381b88",
"rgb": {
"r": 56,
"g": 27,
"b": 136
},
"hsl": {
"h": 255.963,
"s": 66.871,
"l": 31.961
},
"oklch": {
"l": 0.343,
"c": 0.16575,
"h": 285.9
},
"luminance": 0.03402
}Semantic roles & 50–950 ramp
primary
#381B88
secondary
#9BBB44
accent
#EA3EBC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F