#38219F#38219F
#38219F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.188 H 280.7°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).
Color values
| HEX | #38219F |
|---|---|
| RGB | rgb(56, 33, 159) |
| HSL | hsl(251, 66%, 38%) |
| HSV | hsv(251, 79%, 62%) |
| CMYK | cmyk(64.8%, 79.2%, 0%, 37.6%) |
| CIE-LAB | lab(25.05, 46.06, -63.85) |
| CIE-LCH | lch(25.05, 78.73, 305.80°) |
| OKLab | oklab(37.44% 0.0347 -0.1843) |
| OKLCH | oklch(37.44% 0.188 280.7) |
| XYZ | xyz(8.4308, 4.4310, 33.2052) |
| Luminance | 0.0443 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.76
Royal
#0C1793
ΔE00 4.51
Ultramarine
#2000B1
ΔE00 4.79
Cobalt Blue
#030AA7
ΔE00 4.80
Royal Blue (survey)
#0504AA
ΔE00 5.12
True Blue
#010FCC
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#38219F #889F21
analogous
#21499F #38219F #77219F
triadic
#38219F #9F3821 #219F38
tetradic
#38219F #9F2149 #889F21 #219F77
square
#38219F #9F2149 #889F21 #219F77
split-complementary
#38219F #9F7721 #499F21
monochromatic
#140C3A #26166C #38219F #4A2CD2 #745DDD
Accessibility & contrast
On white
11.13
#38219F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.89
#38219F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #38219F
11.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##38219F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##38219F | 1.00 | 11.13 | 1.89 | 11.13 |
| #FFFFFF | 11.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0040A3
Deuteranopia (green-blind)
#00379D
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #38219f; /* rgb */ color: rgb(56, 33, 159); /* oklch */ color: oklch(37.4% 0.188 280.7);
Tailwind
colors: {
custom: {
50: '#7d60bd',
500: '#38219f',
950: '#000000',
},
}SCSS
$custom: #38219f; $custom-light: #7d60bd; $custom-dark: #000000;
JSON
{
"hex": "#38219f",
"rgb": {
"r": 56,
"g": 33,
"b": 159
},
"hsl": {
"h": 250.952,
"s": 65.625,
"l": 37.647
},
"oklch": {
"l": 0.37441,
"c": 0.18753,
"h": 280.7
},
"luminance": 0.04432
}Semantic roles & 50–950 ramp
primary
#38219F
secondary
#AFC25A
accent
#E93FCA
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981