#38218E#38218E
#38218E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.167 H 283.7°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).
Color values
| HEX | #38218E |
|---|---|
| RGB | rgb(56, 33, 142) |
| HSL | hsl(253, 62%, 34%) |
| HSV | hsv(253, 77%, 56%) |
| CMYK | cmyk(60.6%, 76.8%, 0%, 44.3%) |
| CIE-LAB | lab(23.27, 40.85, -56.31) |
| CIE-LCH | lch(23.27, 69.57, 305.96°) |
| OKLab | oklab(35.67% 0.0395 -0.1623) |
| OKLCH | oklch(35.67% 0.167 283.7) |
| XYZ | xyz(7.0557, 3.8810, 25.9632) |
| Luminance | 0.0388 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.33
Indigo Blue
#3A18B1
ΔE00 5.07
Indigo (survey)
#380282
ΔE00 5.12
Cobalt Blue
#030AA7
ΔE00 5.85
Midnight Blue
#191970
ΔE00 6.02
Indigo
#4B0082
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#38218E #778E21
analogous
#21408E #38218E #6F218E
triadic
#38218E #8E3821 #218E38
tetradic
#38218E #8E2140 #778E21 #218E6F
square
#38218E #8E2140 #778E21 #218E6F
split-complementary
#38218E #8E6F21 #408E21
monochromatic
#110A2B #24155C #38218E #4C2DC0 #6E52D7
Accessibility & contrast
On white
11.82
#38218E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#38218E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #38218E
11.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##38218E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##38218E | 1.00 | 11.82 | 1.78 | 11.82 |
| #FFFFFF | 11.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00348C
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #38218e; /* rgb */ color: rgb(56, 33, 142); /* oklch */ color: oklch(35.7% 0.167 283.7);
Tailwind
colors: {
custom: {
50: '#7a5fb0',
500: '#38218e',
950: '#000000',
},
}SCSS
$custom: #38218e; $custom-light: #7a5fb0; $custom-dark: #000000;
JSON
{
"hex": "#38218e",
"rgb": {
"r": 56,
"g": 33,
"b": 142
},
"hsl": {
"h": 252.661,
"s": 62.286,
"l": 34.314
},
"oklch": {
"l": 0.35668,
"c": 0.167,
"h": 283.7
},
"luminance": 0.03881
}Semantic roles & 50–950 ramp
primary
#38218E
secondary
#A4BA50
accent
#E542C3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980