#3C1F98#3C1F98
#3C1F98 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.180 H 284.2°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).
Color values
| HEX | #3C1F98 |
|---|---|
| RGB | rgb(60, 31, 152) |
| HSL | hsl(254, 66%, 36%) |
| HSV | hsv(254, 80%, 60%) |
| CMYK | cmyk(60.5%, 79.6%, 0%, 40.4%) |
| CIE-LAB | lab(24.34, 45.40, -60.71) |
| CIE-LCH | lch(24.34, 75.81, 306.79°) |
| OKLab | oklab(36.82% 0.0442 -0.175) |
| OKLCH | oklch(36.82% 0.18 284.2) |
| XYZ | xyz(8.0192, 4.2071, 30.0892) |
| Luminance | 0.0421 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.51
Royal
#0C1793
ΔE00 4.60
Cobalt Blue
#030AA7
ΔE00 5.18
Ultramarine
#2000B1
ΔE00 5.22
Indigo (survey)
#380282
ΔE00 5.35
Royal Blue (survey)
#0504AA
ΔE00 5.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C1F98 #7B981F
analogous
#1F3E98 #3C1F98 #781F98
triadic
#3C1F98 #983C1F #1F983C
tetradic
#3C1F98 #981F3E #7B981F #1F9878
square
#3C1F98 #981F3E #7B981F #1F9878
split-complementary
#3C1F98 #98781F #3E981F
monochromatic
#140A32 #281565 #3C1F98 #5029CB #7555DC
Accessibility & contrast
On white
11.40
#3C1F98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#3C1F98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C1F98
11.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C1F98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C1F98 | 1.00 | 11.40 | 1.84 | 11.40 |
| #FFFFFF | 11.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003696
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #3c1f98; /* rgb */ color: rgb(60, 31, 152); /* oklch */ color: oklch(36.8% 0.180 284.2);
Tailwind
colors: {
custom: {
50: '#7e5fb7',
500: '#3c1f98',
950: '#000000',
},
}SCSS
$custom: #3c1f98; $custom-light: #7e5fb7; $custom-dark: #000000;
JSON
{
"hex": "#3c1f98",
"rgb": {
"r": 60,
"g": 31,
"b": 152
},
"hsl": {
"h": 254.38,
"s": 66.12,
"l": 35.882
},
"oklch": {
"l": 0.36822,
"c": 0.18047,
"h": 284.2
},
"luminance": 0.04208
}Semantic roles & 50–950 ramp
primary
#3C1F98
secondary
#A6C053
accent
#E93FC0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980