#3C1F99#3C1F99
#3C1F99 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.182 H 284.0°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).
Color values
| HEX | #3C1F99 |
|---|---|
| RGB | rgb(60, 31, 153) |
| HSL | hsl(254, 66%, 36%) |
| HSV | hsv(254, 80%, 60%) |
| CMYK | cmyk(60.8%, 79.7%, 0%, 40%) |
| CIE-LAB | lab(24.45, 45.69, -61.15) |
| CIE-LCH | lch(24.45, 76.34, 306.77°) |
| OKLab | oklab(36.93% 0.0438 -0.1763) |
| OKLCH | oklch(36.93% 0.182 284) |
| XYZ | xyz(8.1015, 4.2400, 30.5223) |
| Luminance | 0.0424 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.37
Royal
#0C1793
ΔE00 4.61
Cobalt Blue
#030AA7
ΔE00 5.12
Ultramarine
#2000B1
ΔE00 5.13
Royal Blue (survey)
#0504AA
ΔE00 5.42
Indigo (survey)
#380282
ΔE00 5.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3C1F99 #7C991F
analogous
#1F3F99 #3C1F99 #791F99
triadic
#3C1F99 #993C1F #1F993C
tetradic
#3C1F99 #991F3F #7C991F #1F9979
square
#3C1F99 #991F3F #7C991F #1F9979
split-complementary
#3C1F99 #99791F #3F991F
monochromatic
#140A33 #281566 #3C1F99 #5029CC #7656DD
Accessibility & contrast
On white
11.36
#3C1F99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#3C1F99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3C1F99
11.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3C1F99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3C1F99 | 1.00 | 11.36 | 1.85 | 11.36 |
| #FFFFFF | 11.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E9C
Deuteranopia (green-blind)
#003697
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #3c1f99; /* rgb */ color: rgb(60, 31, 153); /* oklch */ color: oklch(36.9% 0.182 284.0);
Tailwind
colors: {
custom: {
50: '#7e5fb8',
500: '#3c1f99',
950: '#000000',
},
}SCSS
$custom: #3c1f99; $custom-light: #7e5fb8; $custom-dark: #000000;
JSON
{
"hex": "#3c1f99",
"rgb": {
"r": 60,
"g": 31,
"b": 153
},
"hsl": {
"h": 254.262,
"s": 66.304,
"l": 36.078
},
"oklch": {
"l": 0.36927,
"c": 0.18164,
"h": 284
},
"luminance": 0.04241
}Semantic roles & 50–950 ramp
primary
#3C1F99
secondary
#A6C054
accent
#E93FC1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981