#3C1981#3C1981

#3C1981 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.159 H 290.4°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#3C1981
RGBrgb(60, 25, 129)
HSLhsl(260, 68%, 30%)
HSVhsv(260, 81%, 51%)
CMYKcmyk(53.5%, 80.6%, 0%, 49.4%)
CIE-LABlab(20.98, 41.57, -51.91)
CIE-LCHlch(20.98, 66.50, 308.69°)
OKLaboklab(33.77% 0.0556 -0.1492)
OKLCHoklch(33.77% 0.159 290.4)
XYZxyz(6.1724, 3.2406, 21.0649)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1981 #5E8119
analogous
#192A81 #3C1981 #701981
triadic
#3C1981 #813C19 #19813C
tetradic
#3C1981 #81192A #5E8119 #198170
square
#3C1981 #81192A #5E8119 #198170
split-complementary
#3C1981 #817019 #2A8119
monochromatic
#0C051A #240F4E #3C1981 #5423B4 #703BD9

Accessibility & contrast

On white

12.74
#3C1981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3C1981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1981
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1981#FFFFFF#000000##FFFFFF
##3C19811.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#23374D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3c1981;
/* rgb */ color: rgb(60, 25, 129);
/* oklch */ color: oklch(33.8% 0.159 290.4);
Tailwind
colors: {
  custom: {
    50: '#7a5ba7',
    500: '#3c1981',
    950: '#000000',
  },
}
SCSS
$custom: #3c1981;
$custom-light: #7a5ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1981",
  "rgb": {
    "r": 60,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 260.192,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33768,
    "c": 0.15923,
    "h": 290.4
  },
  "luminance": 0.03241
}

Semantic roles & 50–950 ramp

primary
#3C1981
secondary
#8EB541
accent
#EA3DB0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3C1981

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

Preview Lab → · Contrast checker → · Palette generator →

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