#3C126A#3C126A
#3C126A is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.140 H 299.4°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).
Color values
| HEX | #3C126A |
|---|---|
| RGB | rgb(60, 18, 106) |
| HSL | hsl(269, 71%, 24%) |
| HSV | hsv(269, 83%, 42%) |
| CMYK | cmyk(43.4%, 83%, 0%, 58.4%) |
| CIE-LAB | lab(17.62, 38.37, -42.64) |
| CIE-LCH | lch(17.62, 57.36, 311.98°) |
| OKLab | oklab(30.73% 0.0688 -0.122) |
| OKLCH | oklch(30.73% 0.14 299.4) |
| XYZ | xyz(4.6806, 2.4338, 13.8560) |
| Luminance | 0.0243 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 3.60
Indigo
#4B0082
ΔE00 4.76
Indigo (survey)
#380282
ΔE00 4.85
Dark Indigo
#1F0954
ΔE00 5.65
Midnight Blue
#191970
ΔE00 6.37
Dark Royal Blue
#02066F
ΔE00 7.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C126A #406A12
analogous
#12146A #3C126A #68126A
triadic
#3C126A #6A3C12 #126A3C
tetradic
#3C126A #6A1214 #406A12 #126A68
square
#3C126A #6A1214 #406A12 #126A68
split-complementary
#3C126A #6A6812 #146A12
monochromatic
#0F041A #1E0936 #3C126A #5A1B9E #7724D3
Accessibility & contrast
On white
14.12
#3C126A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#3C126A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C126A
14.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C126A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C126A | 1.00 | 14.12 | 1.49 | 14.12 |
| #FFFFFF | 14.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002A68
Tritanopia (blue-blind)
#312A3E
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #3c126a; /* rgb */ color: rgb(60, 18, 106); /* oklch */ color: oklch(30.7% 0.140 299.4);
Tailwind
colors: {
custom: {
50: '#775695',
500: '#3c126a',
950: '#000000',
},
}SCSS
$custom: #3c126a; $custom-light: #775695; $custom-dark: #000000;
JSON
{
"hex": "#3c126a",
"rgb": {
"r": 60,
"g": 18,
"b": 106
},
"hsl": {
"h": 268.636,
"s": 70.968,
"l": 24.314
},
"oklch": {
"l": 0.30731,
"c": 0.14001,
"h": 299.4
},
"luminance": 0.02434
}Semantic roles & 50–950 ramp
primary
#3C126A
secondary
#6EA236
accent
#EE3A98
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030D
muted
#7B787E