#38236F#38236F
#38236F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.0% C 0.125 H 290.7°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).
Color values
| HEX | #38236F |
|---|---|
| RGB | rgb(56, 35, 111) |
| HSL | hsl(257, 52%, 29%) |
| HSV | hsv(257, 68%, 44%) |
| CMYK | cmyk(49.5%, 68.5%, 0%, 56.5%) |
| CIE-LAB | lab(20.79, 30.01, -40.73) |
| CIE-LCH | lch(20.79, 50.60, 306.38°) |
| OKLab | oklab(33.01% 0.044 -0.1166) |
| OKLCH | oklch(33.01% 0.125 290.7) |
| XYZ | xyz(5.1004, 3.1903, 15.3829) |
| Luminance | 0.0319 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 5.11
Indigo (survey)
#380282
ΔE00 6.98
Dark Indigo
#1F0954
ΔE00 7.19
Indigo
#4B0082
ΔE00 7.39
Royal Purple (survey)
#4B006E
ΔE00 7.40
Darkslateblue
#483D8B
ΔE00 7.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#38236F #5A6F23
analogous
#23346F #38236F #5E236F
triadic
#38236F #6F3823 #236F38
tetradic
#38236F #6F2334 #5A6F23 #236F5E
square
#38236F #6F2334 #5A6F23 #236F5E
split-complementary
#38236F #6F5E23 #346F23
monochromatic
#0C0717 #211440 #38236F #4F329E #6A47C5
Accessibility & contrast
On white
12.82
#38236F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#38236F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #38236F
12.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##38236F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##38236F | 1.00 | 12.82 | 1.64 | 12.82 |
| #FFFFFF | 12.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#00306D
Tritanopia (blue-blind)
#273545
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #38236f; /* rgb */ color: rgb(56, 35, 111); /* oklch */ color: oklch(33.0% 0.125 290.7);
Tailwind
colors: {
custom: {
50: '#745f99',
500: '#38236f',
950: '#000000',
},
}SCSS
$custom: #38236f; $custom-light: #745f99; $custom-dark: #000000;
JSON
{
"hex": "#38236f",
"rgb": {
"r": 56,
"g": 35,
"b": 111
},
"hsl": {
"h": 256.579,
"s": 52.055,
"l": 28.627
},
"oklch": {
"l": 0.33009,
"c": 0.12462,
"h": 290.7
},
"luminance": 0.03191
}Semantic roles & 50–950 ramp
primary
#38236F
secondary
#8AA24C
accent
#DB4CB4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09050E
muted
#7B797E