#38219E#38219E
#38219E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.186 H 280.8°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).
Color values
| HEX | #38219E |
|---|---|
| RGB | rgb(56, 33, 158) |
| HSL | hsl(251, 65%, 37%) |
| HSV | hsv(251, 79%, 62%) |
| CMYK | cmyk(64.6%, 79.1%, 0%, 38%) |
| CIE-LAB | lab(24.94, 45.75, -63.42) |
| CIE-LCH | lch(24.94, 78.20, 305.81°) |
| OKLab | oklab(37.34% 0.035 -0.183) |
| OKLCH | oklch(37.34% 0.186 280.8) |
| XYZ | xyz(8.3443, 4.3964, 32.7500) |
| Luminance | 0.0440 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.88
Royal
#0C1793
ΔE00 4.45
Cobalt Blue
#030AA7
ΔE00 4.82
Ultramarine
#2000B1
ΔE00 4.86
Royal Blue (survey)
#0504AA
ΔE00 5.15
True Blue
#010FCC
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#38219E #879E21
analogous
#21499E #38219E #77219E
triadic
#38219E #9E3821 #219E38
tetradic
#38219E #9E2149 #879E21 #219E77
square
#38219E #9E2149 #879E21 #219E77
split-complementary
#38219E #9E7721 #499E21
monochromatic
#140C39 #26166B #38219E #4A2CD1 #745CDD
Accessibility & contrast
On white
11.17
#38219E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.88
#38219E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #38219E
11.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##38219E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##38219E | 1.00 | 11.17 | 1.88 | 11.17 |
| #FFFFFF | 11.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003FA1
Deuteranopia (green-blind)
#00369C
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #38219e; /* rgb */ color: rgb(56, 33, 158); /* oklch */ color: oklch(37.3% 0.186 280.8);
Tailwind
colors: {
custom: {
50: '#7d60bc',
500: '#38219e',
950: '#000000',
},
}SCSS
$custom: #38219e; $custom-light: #7d60bc; $custom-dark: #000000;
JSON
{
"hex": "#38219e",
"rgb": {
"r": 56,
"g": 33,
"b": 158
},
"hsl": {
"h": 251.04,
"s": 65.445,
"l": 37.451
},
"oklch": {
"l": 0.37335,
"c": 0.18633,
"h": 280.8
},
"luminance": 0.04397
}Semantic roles & 50–950 ramp
primary
#38219E
secondary
#AEC159
accent
#E83FC9
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981