#38228C#38228C
#38228C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.163 H 283.9°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).
Color values
| HEX | #38228C |
|---|---|
| RGB | rgb(56, 34, 140) |
| HSL | hsl(252, 61%, 34%) |
| HSV | hsv(252, 76%, 55%) |
| CMYK | cmyk(60%, 75.7%, 0%, 45.1%) |
| CIE-LAB | lab(23.26, 39.70, -55.08) |
| CIE-LCH | lch(23.26, 67.89, 305.78°) |
| OKLab | oklab(35.6% 0.0392 -0.1587) |
| OKLCH | oklch(35.6% 0.163 283.9) |
| XYZ | xyz(6.9351, 3.8778, 25.1889) |
| Luminance | 0.0388 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.51
Indigo (survey)
#380282
ΔE00 5.27
Indigo Blue
#3A18B1
ΔE00 5.44
Midnight Blue
#191970
ΔE00 5.83
Cobalt Blue
#030AA7
ΔE00 6.18
Indigo
#4B0082
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#38228C #768C22
analogous
#22418C #38228C #6D228C
triadic
#38228C #8C3822 #228C38
tetradic
#38228C #8C2241 #768C22 #228C6D
square
#38228C #8C2241 #768C22 #228C6D
split-complementary
#38228C #8C6D22 #418C22
monochromatic
#110A2A #24165B #38228C #4C2EBD #6E53D5
Accessibility & contrast
On white
11.83
#38228C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#38228C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #38228C
11.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##38228C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##38228C | 1.00 | 11.83 | 1.78 | 11.83 |
| #FFFFFF | 11.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00348A
Tritanopia (blue-blind)
#054055
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #38228c; /* rgb */ color: rgb(56, 34, 140); /* oklch */ color: oklch(35.6% 0.163 283.9);
Tailwind
colors: {
custom: {
50: '#7960af',
500: '#38228c',
950: '#000000',
},
}SCSS
$custom: #38228c; $custom-light: #7960af; $custom-dark: #000000;
JSON
{
"hex": "#38228c",
"rgb": {
"r": 56,
"g": 34,
"b": 140
},
"hsl": {
"h": 252.453,
"s": 60.92,
"l": 34.118
},
"oklch": {
"l": 0.356,
"c": 0.16346,
"h": 283.9
},
"luminance": 0.03878
}Semantic roles & 50–950 ramp
primary
#38228C
secondary
#A3B951
accent
#E444C3
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0510
muted
#7C797F