#38238C#38238C
#38238C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.162 H 283.7°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).
Color values
| HEX | #38238C |
|---|---|
| RGB | rgb(56, 35, 140) |
| HSL | hsl(252, 60%, 34%) |
| HSV | hsv(252, 75%, 55%) |
| CMYK | cmyk(60%, 75%, 0%, 45.1%) |
| CIE-LAB | lab(23.46, 39.15, -54.76) |
| CIE-LCH | lch(23.46, 67.31, 305.56°) |
| OKLab | oklab(35.74% 0.0384 -0.1578) |
| OKLCH | oklch(35.74% 0.162 283.7) |
| XYZ | xyz(6.9641, 3.9358, 25.1986) |
| Luminance | 0.0394 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.62
Indigo (survey)
#380282
ΔE00 5.49
Indigo Blue
#3A18B1
ΔE00 5.52
Midnight Blue
#191970
ΔE00 5.87
Cobalt Blue
#030AA7
ΔE00 6.32
Indigo
#4B0082
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#38238C #778C23
analogous
#23438C #38238C #6D238C
triadic
#38238C #8C3823 #238C38
tetradic
#38238C #8C2343 #778C23 #238C6D
square
#38238C #8C2343 #778C23 #238C6D
split-complementary
#38238C #8C6D23 #438C23
monochromatic
#110B2A #24175B #38238C #4C2FBD #6E55D4
Accessibility & contrast
On white
11.75
#38238C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#38238C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #38238C
11.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##38238C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##38238C | 1.00 | 11.75 | 1.79 | 11.75 |
| #FFFFFF | 11.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00348A
Tritanopia (blue-blind)
#054055
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #38238c; /* rgb */ color: rgb(56, 35, 140); /* oklch */ color: oklch(35.7% 0.162 283.7);
Tailwind
colors: {
custom: {
50: '#7960af',
500: '#38238c',
950: '#000000',
},
}SCSS
$custom: #38238c; $custom-light: #7960af; $custom-dark: #000000;
JSON
{
"hex": "#38238c",
"rgb": {
"r": 56,
"g": 35,
"b": 140
},
"hsl": {
"h": 252,
"s": 60,
"l": 34.314
},
"oklch": {
"l": 0.35737,
"c": 0.16238,
"h": 283.7
},
"luminance": 0.03936
}Semantic roles & 50–950 ramp
primary
#38238C
secondary
#A4B852
accent
#E345C3
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#0A0510
muted
#7C797F