#3C1581#3C1581

#3C1581 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.163 H 291.0°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#3C1581
RGBrgb(60, 21, 129)
HSLhsl(262, 72%, 29%)
HSVhsv(262, 84%, 51%)
CMYKcmyk(53.5%, 83.7%, 0%, 49.4%)
CIE-LABlab(20.37, 43.35, -52.92)
CIE-LCHlch(20.37, 68.41, 309.32°)
OKLaboklab(33.34% 0.0585 -0.1521)
OKLCHoklch(33.34% 0.163 291)
XYZxyz(6.0930, 3.0817, 21.0384)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1581 #5A8115
analogous
#152481 #3C1581 #721581
triadic
#3C1581 #813C15 #15813C
tetradic
#3C1581 #811524 #5A8115 #158172
square
#3C1581 #811524 #5A8115 #158172
split-complementary
#3C1581 #817215 #248115
monochromatic
#0C041A #240C4C #3C1581 #541EB6 #7033DE

Accessibility & contrast

On white

12.99
#3C1581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3C1581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1581
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1581#FFFFFF#000000##FFFFFF
##3C15811.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002F7F
Tritanopia (blue-blind)
#23354C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3c1581;
/* rgb */ color: rgb(60, 21, 129);
/* oklch */ color: oklch(33.3% 0.163 291.0);
Tailwind
colors: {
  custom: {
    50: '#7a59a7',
    500: '#3c1581',
    950: '#000000',
  },
}
SCSS
$custom: #3c1581;
$custom-light: #7a59a7;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1581",
  "rgb": {
    "r": 60,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 261.667,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33341,
    "c": 0.16298,
    "h": 291
  },
  "luminance": 0.03082
}

Semantic roles & 50–950 ramp

primary
#3C1581
secondary
#8AB63C
accent
#EF39AD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3C1581

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#3C1581 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva