#3C237D#3C237D
#3C237D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.143 H 289.5°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).
Color values
| HEX | #3C237D |
|---|---|
| RGB | rgb(60, 35, 125) |
| HSL | hsl(257, 56%, 31%) |
| HSV | hsv(257, 72%, 49%) |
| CMYK | cmyk(52%, 72%, 0%, 51%) |
| CIE-LAB | lab(22.45, 35.14, -46.96) |
| CIE-LCH | lch(22.45, 58.66, 306.81°) |
| OKLab | oklab(34.69% 0.0478 -0.1348) |
| OKLCH | oklch(34.69% 0.143 289.5) |
| XYZ | xyz(6.1651, 3.6431, 19.7764) |
| Luminance | 0.0364 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 5.38
Indigo (survey)
#380282
ΔE00 5.61
Indigo
#4B0082
ΔE00 6.01
Royal
#0C1793
ΔE00 6.50
Royal Purple (survey)
#4B006E
ΔE00 7.16
Darkslateblue
#483D8B
ΔE00 7.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C237D #647D23
analogous
#23377D #3C237D #69237D
triadic
#3C237D #7D3C23 #237D3C
tetradic
#3C237D #7D2337 #647D23 #237D69
square
#3C237D #7D2337 #647D23 #237D69
split-complementary
#3C237D #7D6923 #377D23
monochromatic
#0E081D #25164D #3C237D #5330AD #714DCD
Accessibility & contrast
On white
12.15
#3C237D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#3C237D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C237D
12.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C237D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C237D | 1.00 | 12.15 | 1.73 | 12.15 |
| #FFFFFF | 12.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#253A4D
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #3c237d; /* rgb */ color: rgb(60, 35, 125); /* oklch */ color: oklch(34.7% 0.143 289.5);
Tailwind
colors: {
custom: {
50: '#7960a3',
500: '#3c237d',
950: '#000000',
},
}SCSS
$custom: #3c237d; $custom-light: #7960a3; $custom-dark: #000000;
JSON
{
"hex": "#3c237d",
"rgb": {
"r": 60,
"g": 35,
"b": 125
},
"hsl": {
"h": 256.667,
"s": 56.25,
"l": 31.373
},
"oklch": {
"l": 0.34689,
"c": 0.143,
"h": 289.5
},
"luminance": 0.03643
}Semantic roles & 50–950 ramp
primary
#3C237D
secondary
#94AF4C
accent
#E048B6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F