#3C1E79#3C1E79

#3C1E79 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.144 H 291.8°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#3C1E79
RGBrgb(60, 30, 121)
HSLhsl(260, 60%, 30%)
HSVhsv(260, 75%, 47%)
CMYKcmyk(50.4%, 75.2%, 0%, 52.5%)
CIE-LABlab(21.09, 36.72, -46.64)
CIE-LCHlch(21.09, 59.36, 308.21°)
OKLaboklab(33.61% 0.0536 -0.1338)
OKLCHoklch(33.61% 0.144 291.8)
XYZxyz(5.7780, 3.2695, 18.4121)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1E79 #5B791E
analogous
#1E2E79 #3C1E79 #6A1E79
triadic
#3C1E79 #793C1E #1E793C
tetradic
#3C1E79 #791E2E #5B791E #1E796A
square
#3C1E79 #791E2E #5B791E #1E796A
split-complementary
#3C1E79 #796A1E #2E791E
monochromatic
#0C0619 #241248 #3C1E79 #542AAA #7041D0

Accessibility & contrast

On white

12.70
#3C1E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3C1E79
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1E79#FFFFFF#000000##FFFFFF
##3C1E791.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#283649
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3c1e79;
/* rgb */ color: rgb(60, 30, 121);
/* oklch */ color: oklch(33.6% 0.144 291.8);
Tailwind
colors: {
  custom: {
    50: '#785da1',
    500: '#3c1e79',
    950: '#000000',
  },
}
SCSS
$custom: #3c1e79;
$custom-light: #785da1;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1e79",
  "rgb": {
    "r": 60,
    "g": 30,
    "b": 121
  },
  "hsl": {
    "h": 259.78,
    "s": 60.265,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33608,
    "c": 0.14413,
    "h": 291.8
  },
  "luminance": 0.0327
}

Semantic roles & 50–950 ramp

primary
#3C1E79
secondary
#8BAD46
accent
#E344AF
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3C1E79

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

Preview Lab → · Contrast checker → · Palette generator →

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