#3C1A97#3C1A97

#3C1A97 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.184 H 285.0°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#3C1A97
RGBrgb(60, 26, 151)
HSLhsl(256, 71%, 35%)
HSVhsv(256, 83%, 59%)
CMYKcmyk(60.3%, 82.8%, 0%, 40.8%)
CIE-LABlab(23.45, 47.40, -61.57)
CIE-LCHlch(23.45, 77.70, 307.59°)
OKLaboklab(36.17% 0.0475 -0.1774)
OKLCHoklch(36.17% 0.184 285)
XYZxyz(7.8171, 3.9333, 29.6194)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1A97 #75971A
analogous
#1A3797 #3C1A97 #7B1A97
triadic
#3C1A97 #973C1A #1A973C
tetradic
#3C1A97 #971A37 #75971A #1A977B
square
#3C1A97 #971A37 #75971A #1A977B
split-complementary
#3C1A97 #977B1A #37971A
monochromatic
#13082F #271163 #3C1A97 #5123CB #744BE0

Accessibility & contrast

On white

11.75
#3C1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3C1A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1A97
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1A97#FFFFFF#000000##FFFFFF
##3C1A971.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003495
Tritanopia (blue-blind)
#02405A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3c1a97;
/* rgb */ color: rgb(60, 26, 151);
/* oklch */ color: oklch(36.2% 0.184 285.0);
Tailwind
colors: {
  custom: {
    50: '#7e5cb7',
    500: '#3c1a97',
    950: '#000000',
  },
}
SCSS
$custom: #3c1a97;
$custom-light: #7e5cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1a97",
  "rgb": {
    "r": 60,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 256.32,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3617,
    "c": 0.18369,
    "h": 285
  },
  "luminance": 0.03934
}

Semantic roles & 50–950 ramp

primary
#3C1A97
secondary
#A2C24B
accent
#ED3ABD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3C1A97

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

Preview Lab → · Contrast checker → · Palette generator →

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