#3C238F#3C238F
#3C238F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.166 H 285.3°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).
Color values
| HEX | #3C238F |
|---|---|
| RGB | rgb(60, 35, 143) |
| HSL | hsl(254, 61%, 35%) |
| HSV | hsv(254, 76%, 56%) |
| CMYK | cmyk(58%, 75.5%, 0%, 43.9%) |
| CIE-LAB | lab(24.15, 40.66, -55.48) |
| CIE-LCH | lch(24.15, 68.78, 306.23°) |
| OKLab | oklab(36.41% 0.0438 -0.1597) |
| OKLCH | oklch(36.41% 0.166 285.3) |
| XYZ | xyz(7.4209, 4.1455, 26.3904) |
| Luminance | 0.0415 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.98
Indigo Blue
#3A18B1
ΔE00 5.06
Indigo (survey)
#380282
ΔE00 5.51
Indigo
#4B0082
ΔE00 6.15
Cobalt Blue
#030AA7
ΔE00 6.34
Midnight Blue
#191970
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C238F #768F23
analogous
#23408F #3C238F #72238F
triadic
#3C238F #8F3C23 #238F3C
tetradic
#3C238F #8F2340 #768F23 #238F72
square
#3C238F #8F2340 #768F23 #238F72
split-complementary
#3C238F #8F7223 #408F23
monochromatic
#130B2D #27175E #3C238F #512FC0 #7457D6
Accessibility & contrast
On white
11.48
#3C238F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#3C238F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C238F
11.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C238F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C238F | 1.00 | 11.48 | 1.83 | 11.48 |
| #FFFFFF | 11.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#134157
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #3c238f; /* rgb */ color: rgb(60, 35, 143); /* oklch */ color: oklch(36.4% 0.166 285.3);
Tailwind
colors: {
custom: {
50: '#7c61b1',
500: '#3c238f',
950: '#000000',
},
}SCSS
$custom: #3c238f; $custom-light: #7c61b1; $custom-dark: #000000;
JSON
{
"hex": "#3c238f",
"rgb": {
"r": 60,
"g": 35,
"b": 143
},
"hsl": {
"h": 253.889,
"s": 60.674,
"l": 34.902
},
"oklch": {
"l": 0.36409,
"c": 0.16562,
"h": 285.3
},
"luminance": 0.04146
}Semantic roles & 50–950 ramp
primary
#3C238F
secondary
#A2BA54
accent
#E444BF
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980