#3C159F#3C159F

#3C159F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.6% C 0.196 H 283.9°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#3C159F
RGBrgb(60, 21, 159)
HSLhsl(257, 77%, 35%)
HSVhsv(257, 87%, 62%)
CMYKcmyk(62.3%, 86.8%, 0%, 37.6%)
CIE-LABlab(23.67, 51.61, -66.11)
CIE-LCHlch(23.67, 83.88, 307.98°)
OKLaboklab(36.59% 0.0471 -0.1906)
OKLCHoklch(36.59% 0.196 283.9)
XYZxyz(8.3877, 3.9996, 33.1242)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C159F #789F15
analogous
#15339F #3C159F #81159F
triadic
#3C159F #9F3C15 #159F3C
tetradic
#3C159F #9F1533 #789F15 #159F81
square
#3C159F #9F1533 #789F15 #159F81
split-complementary
#3C159F #9F8115 #339F15
monochromatic
#130733 #280E69 #3C159F #501CD5 #7548E7

Accessibility & contrast

On white

11.67
#3C159F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3C159F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C159F
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C159F#FFFFFF#000000##FFFFFF
##3C159F1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA3
Deuteranopia (green-blind)
#00349D
Tritanopia (blue-blind)
#00425E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3c159f;
/* rgb */ color: rgb(60, 21, 159);
/* oklch */ color: oklch(36.6% 0.196 283.9);
Tailwind
colors: {
  custom: {
    50: '#805bbd',
    500: '#3c159f',
    950: '#000000',
  },
}
SCSS
$custom: #3c159f;
$custom-light: #805bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#3c159f",
  "rgb": {
    "r": 60,
    "g": 21,
    "b": 159
  },
  "hsl": {
    "h": 256.957,
    "s": 76.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36585,
    "c": 0.19633,
    "h": 283.9
  },
  "luminance": 0.04
}

Semantic roles & 50–950 ramp

primary
#3C159F
secondary
#A4C848
accent
#F335BD
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981

Preview Lab

Preview with #3C159F

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

Preview Lab → · Contrast checker → · Palette generator →

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