#381D9F#381D9F
#381D9F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.191 H 281.1°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).
Color values
| HEX | #381D9F |
|---|---|
| RGB | rgb(56, 29, 159) |
| HSL | hsl(252, 69%, 37%) |
| HSV | hsv(252, 82%, 62%) |
| CMYK | cmyk(64.8%, 81.8%, 0%, 37.6%) |
| CIE-LAB | lab(24.39, 47.96, -64.93) |
| CIE-LCH | lch(24.39, 80.72, 306.45°) |
| OKLab | oklab(36.99% 0.0369 -0.1874) |
| OKLCH | oklch(36.99% 0.191 281.1) |
| XYZ | xyz(8.3263, 4.2220, 33.1703) |
| Luminance | 0.0422 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.49
Ultramarine
#2000B1
ΔE00 4.21
Royal
#0C1793
ΔE00 4.28
Cobalt Blue
#030AA7
ΔE00 4.30
Royal Blue (survey)
#0504AA
ΔE00 4.57
Indigo (survey)
#380282
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#381D9F #849F1D
analogous
#1D439F #381D9F #791D9F
triadic
#381D9F #9F381D #1D9F38
tetradic
#381D9F #9F1D43 #849F1D #1D9F79
square
#381D9F #9F1D43 #849F1D #1D9F79
split-complementary
#381D9F #9F791D #439F1D
monochromatic
#140A37 #26146B #381D9F #4A26D3 #7356E0
Accessibility & contrast
On white
11.38
#381D9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#381D9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #381D9F
11.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##381D9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##381D9F | 1.00 | 11.38 | 1.84 | 11.38 |
| #FFFFFF | 11.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00359D
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #381d9f; /* rgb */ color: rgb(56, 29, 159); /* oklch */ color: oklch(37.0% 0.191 281.1);
Tailwind
colors: {
custom: {
50: '#7d5ebd',
500: '#381d9f',
950: '#000000',
},
}SCSS
$custom: #381d9f; $custom-light: #7d5ebd; $custom-dark: #000000;
JSON
{
"hex": "#381d9f",
"rgb": {
"r": 56,
"g": 29,
"b": 159
},
"hsl": {
"h": 252.462,
"s": 69.149,
"l": 36.863
},
"oklch": {
"l": 0.36986,
"c": 0.19098,
"h": 281.1
},
"luminance": 0.04223
}Semantic roles & 50–950 ramp
primary
#381D9F
secondary
#ACC454
accent
#EC3CC7
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981