#381F88#381F88
#381F88 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.162 H 285.3°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).
Color values
| HEX | #381F88 |
|---|---|
| RGB | rgb(56, 31, 136) |
| HSL | hsl(254, 63%, 33%) |
| HSV | hsv(254, 77%, 53%) |
| CMYK | cmyk(58.8%, 77.2%, 0%, 46.7%) |
| CIE-LAB | lab(22.29, 40.07, -54.17) |
| CIE-LCH | lch(22.29, 67.38, 306.49°) |
| OKLab | oklab(34.8% 0.0426 -0.156) |
| OKLCH | oklch(34.8% 0.162 285.3) |
| XYZ | xyz(6.5635, 3.5979, 23.6364) |
| Luminance | 0.0360 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.50
Royal
#0C1793
ΔE00 4.53
Midnight Blue
#191970
ΔE00 5.39
Indigo
#4B0082
ΔE00 5.55
Indigo Blue
#3A18B1
ΔE00 5.88
Cobalt Blue
#030AA7
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#381F88 #6F881F
analogous
#1F3A88 #381F88 #6D1F88
triadic
#381F88 #88381F #1F8838
tetradic
#381F88 #881F3A #6F881F #1F886D
square
#381F88 #881F3A #6F881F #1F886D
split-complementary
#381F88 #886D1F #3A881F
monochromatic
#0F0824 #231456 #381F88 #4D2ABA #6C4BD6
Accessibility & contrast
On white
12.21
#381F88 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#381F88 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #381F88
12.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##381F88 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##381F88 | 1.00 | 12.21 | 1.72 | 12.21 |
| #FFFFFF | 12.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003286
Tritanopia (blue-blind)
#0F3D52
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #381f88; /* rgb */ color: rgb(56, 31, 136); /* oklch */ color: oklch(34.8% 0.162 285.3);
Tailwind
colors: {
custom: {
50: '#795eac',
500: '#381f88',
950: '#000000',
},
}SCSS
$custom: #381f88; $custom-light: #795eac; $custom-dark: #000000;
JSON
{
"hex": "#381f88",
"rgb": {
"r": 56,
"g": 31,
"b": 136
},
"hsl": {
"h": 254.286,
"s": 62.874,
"l": 32.745
},
"oklch": {
"l": 0.34796,
"c": 0.16172,
"h": 285.3
},
"luminance": 0.03598
}Semantic roles & 50–950 ramp
primary
#381F88
secondary
#9EB94A
accent
#E642BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F