#3C237F#3C237F
#3C237F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.146 H 289.0°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).
Color values
| HEX | #3C237F |
|---|---|
| RGB | rgb(60, 35, 127) |
| HSL | hsl(256, 57%, 32%) |
| HSV | hsv(256, 72%, 50%) |
| CMYK | cmyk(52.8%, 72.4%, 0%, 50.2%) |
| CIE-LAB | lab(22.64, 35.76, -47.93) |
| CIE-LCH | lch(22.64, 59.80, 306.72°) |
| OKLab | oklab(34.87% 0.0474 -0.1376) |
| OKLCH | oklch(34.87% 0.146 289) |
| XYZ | xyz(6.2942, 3.6947, 20.4561) |
| Luminance | 0.0369 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 5.43
Indigo (survey)
#380282
ΔE00 5.51
Indigo
#4B0082
ΔE00 5.95
Royal
#0C1793
ΔE00 6.25
Darkslateblue
#483D8B
ΔE00 7.19
Royal Purple (survey)
#4B006E
ΔE00 7.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C237F #667F23
analogous
#23387F #3C237F #6A237F
triadic
#3C237F #7F3C23 #237F3C
tetradic
#3C237F #7F2338 #667F23 #237F6A
square
#3C237F #7F2338 #667F23 #237F6A
split-complementary
#3C237F #7F6A23 #387F23
monochromatic
#0F091F #25164F #3C237F #5330AF #714ECE
Accessibility & contrast
On white
12.08
#3C237F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#3C237F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C237F
12.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C237F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C237F | 1.00 | 12.08 | 1.74 | 12.08 |
| #FFFFFF | 12.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#243B4E
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #3c237f; /* rgb */ color: rgb(60, 35, 127); /* oklch */ color: oklch(34.9% 0.146 289.0);
Tailwind
colors: {
custom: {
50: '#7960a5',
500: '#3c237f',
950: '#000000',
},
}SCSS
$custom: #3c237f; $custom-light: #7960a5; $custom-dark: #000000;
JSON
{
"hex": "#3c237f",
"rgb": {
"r": 60,
"g": 35,
"b": 127
},
"hsl": {
"h": 256.304,
"s": 56.79,
"l": 31.765
},
"oklch": {
"l": 0.34874,
"c": 0.14556,
"h": 289
},
"luminance": 0.03695
}Semantic roles & 50–950 ramp
primary
#3C237F
secondary
#96B14C
accent
#E048B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F