#381F89#381F89
#381F89 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.163 H 285.0°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).
Color values
| HEX | #381F89 |
|---|---|
| RGB | rgb(56, 31, 137) |
| HSL | hsl(254, 63%, 33%) |
| HSV | hsv(254, 77%, 54%) |
| CMYK | cmyk(59.1%, 77.4%, 0%, 46.3%) |
| CIE-LAB | lab(22.40, 40.37, -54.63) |
| CIE-LCH | lch(22.40, 67.93, 306.46°) |
| OKLab | oklab(34.9% 0.0423 -0.1574) |
| OKLCH | oklch(34.9% 0.163 285) |
| XYZ | xyz(6.6349, 3.6265, 24.0124) |
| Luminance | 0.0363 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.45
Indigo (survey)
#380282
ΔE00 4.52
Midnight Blue
#191970
ΔE00 5.49
Indigo
#4B0082
ΔE00 5.58
Indigo Blue
#3A18B1
ΔE00 5.72
Cobalt Blue
#030AA7
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#381F89 #70891F
analogous
#1F3B89 #381F89 #6D1F89
triadic
#381F89 #89381F #1F8938
tetradic
#381F89 #891F3B #70891F #1F896D
square
#381F89 #891F3B #70891F #1F896D
split-complementary
#381F89 #896D1F #3B891F
monochromatic
#0F0825 #241457 #381F89 #4C2ABB #6D4CD6
Accessibility & contrast
On white
12.17
#381F89 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#381F89 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #381F89
12.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##381F89 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##381F89 | 1.00 | 12.17 | 1.73 | 12.17 |
| #FFFFFF | 12.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388C
Deuteranopia (green-blind)
#003287
Tritanopia (blue-blind)
#0D3D53
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #381f89; /* rgb */ color: rgb(56, 31, 137); /* oklch */ color: oklch(34.9% 0.163 285.0);
Tailwind
colors: {
custom: {
50: '#795eac',
500: '#381f89',
950: '#000000',
},
}SCSS
$custom: #381f89; $custom-light: #795eac; $custom-dark: #000000;
JSON
{
"hex": "#381f89",
"rgb": {
"r": 56,
"g": 31,
"b": 137
},
"hsl": {
"h": 254.151,
"s": 63.095,
"l": 32.941
},
"oklch": {
"l": 0.34898,
"c": 0.16294,
"h": 285
},
"luminance": 0.03627
}Semantic roles & 50–950 ramp
primary
#381F89
secondary
#9FB94B
accent
#E642BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F