#3C237E#3C237E
#3C237E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.8% C 0.144 H 289.3°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).
Color values
| HEX | #3C237E |
|---|---|
| RGB | rgb(60, 35, 126) |
| HSL | hsl(256, 57%, 32%) |
| HSV | hsv(256, 72%, 49%) |
| CMYK | cmyk(52.4%, 72.2%, 0%, 50.6%) |
| CIE-LAB | lab(22.54, 35.45, -47.45) |
| CIE-LCH | lch(22.54, 59.23, 306.76°) |
| OKLab | oklab(34.78% 0.0476 -0.1362) |
| OKLCH | oklch(34.78% 0.144 289.3) |
| XYZ | xyz(6.2293, 3.6688, 20.1145) |
| Luminance | 0.0367 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 5.40
Indigo (survey)
#380282
ΔE00 5.55
Indigo
#4B0082
ΔE00 5.98
Royal
#0C1793
ΔE00 6.37
Darkslateblue
#483D8B
ΔE00 7.21
Royal Purple (survey)
#4B006E
ΔE00 7.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C237E #657E23
analogous
#23377E #3C237E #6A237E
triadic
#3C237E #7E3C23 #237E3C
tetradic
#3C237E #7E2337 #657E23 #237E6A
square
#3C237E #7E2337 #657E23 #237E6A
split-complementary
#3C237E #7E6A23 #377E23
monochromatic
#0E081E #25164E #3C237E #5330AE #714ECE
Accessibility & contrast
On white
12.11
#3C237E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#3C237E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C237E
12.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C237E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C237E | 1.00 | 12.11 | 1.73 | 12.11 |
| #FFFFFF | 12.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#253A4E
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #3c237e; /* rgb */ color: rgb(60, 35, 126); /* oklch */ color: oklch(34.8% 0.144 289.3);
Tailwind
colors: {
custom: {
50: '#7960a4',
500: '#3c237e',
950: '#000000',
},
}SCSS
$custom: #3c237e; $custom-light: #7960a4; $custom-dark: #000000;
JSON
{
"hex": "#3c237e",
"rgb": {
"r": 60,
"g": 35,
"b": 126
},
"hsl": {
"h": 256.484,
"s": 56.522,
"l": 31.569
},
"oklch": {
"l": 0.34782,
"c": 0.14428,
"h": 289.3
},
"luminance": 0.03669
}Semantic roles & 50–950 ramp
primary
#3C237E
secondary
#95B04C
accent
#E048B6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F