#3C238E#3C238E
#3C238E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.164 H 285.5°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).
Color values
| HEX | #3C238E |
|---|---|
| RGB | rgb(60, 35, 142) |
| HSL | hsl(254, 60%, 35%) |
| HSV | hsv(254, 75%, 56%) |
| CMYK | cmyk(57.7%, 75.4%, 0%, 44.3%) |
| CIE-LAB | lab(24.05, 40.35, -55.02) |
| CIE-LCH | lch(24.05, 68.23, 306.26°) |
| OKLab | oklab(36.31% 0.044 -0.1584) |
| OKLCH | oklch(36.31% 0.164 285.5) |
| XYZ | xyz(7.3455, 4.1153, 25.9932) |
| Luminance | 0.0412 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 5.02
Indigo Blue
#3A18B1
ΔE00 5.21
Indigo (survey)
#380282
ΔE00 5.47
Indigo
#4B0082
ΔE00 6.11
Cobalt Blue
#030AA7
ΔE00 6.43
Midnight Blue
#191970
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C238E #758E23
analogous
#233F8E #3C238E #72238E
triadic
#3C238E #8E3C23 #238E3C
tetradic
#3C238E #8E233F #758E23 #238E72
square
#3C238E #8E233F #758E23 #238E72
split-complementary
#3C238E #8E7223 #3F8E23
monochromatic
#130B2C #27175D #3C238E #512FBF #7456D5
Accessibility & contrast
On white
11.52
#3C238E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#3C238E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C238E
11.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C238E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C238E | 1.00 | 11.52 | 1.82 | 11.52 |
| #FFFFFF | 11.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#144056
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #3c238e; /* rgb */ color: rgb(60, 35, 142); /* oklch */ color: oklch(36.3% 0.164 285.5);
Tailwind
colors: {
custom: {
50: '#7c61b0',
500: '#3c238e',
950: '#000000',
},
}SCSS
$custom: #3c238e; $custom-light: #7c61b0; $custom-dark: #000000;
JSON
{
"hex": "#3c238e",
"rgb": {
"r": 60,
"g": 35,
"b": 142
},
"hsl": {
"h": 254.019,
"s": 60.452,
"l": 34.706
},
"oklch": {
"l": 0.3631,
"c": 0.1644,
"h": 285.5
},
"luminance": 0.04116
}Semantic roles & 50–950 ramp
primary
#3C238E
secondary
#A2B953
accent
#E444BE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980