#3C1159#3C1159

#3C1159 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.122 H 307.5°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#3C1159
RGBrgb(60, 17, 89)
HSLhsl(276, 68%, 21%)
HSVhsv(276, 81%, 35%)
CMYKcmyk(32.6%, 80.9%, 0%, 65.1%)
CIE-LABlab(15.92, 34.39, -34.13)
CIE-LCHlch(15.92, 48.46, 315.22°)
OKLaboklab(29.06% 0.0744 -0.097)
OKLCHoklch(29.06% 0.122 307.5)
XYZxyz(3.8667, 2.0829, 9.6476)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1159 #2E5911
analogous
#181159 #3C1159 #591152
triadic
#3C1159 #593C11 #11593C
tetradic
#3C1159 #591811 #2E5911 #115259
square
#3C1159 #591811 #2E5911 #115259
split-complementary
#3C1159 #525911 #115918
monochromatic
#11051A #190726 #3C1159 #5F1B8C #8125C0

Accessibility & contrast

On white

14.82
#3C1159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#3C1159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1159
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1159#FFFFFF#000000##FFFFFF
##3C11591.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265B
Deuteranopia (green-blind)
#002858
Tritanopia (blue-blind)
#372334
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3c1159;
/* rgb */ color: rgb(60, 17, 89);
/* oklch */ color: oklch(29.1% 0.122 307.5);
Tailwind
colors: {
  custom: {
    50: '#755488',
    500: '#3c1159',
    950: '#000000',
  },
}
SCSS
$custom: #3c1159;
$custom-light: #755488;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1159",
  "rgb": {
    "r": 60,
    "g": 17,
    "b": 89
  },
  "hsl": {
    "h": 275.833,
    "s": 67.925,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29059,
    "c": 0.12223,
    "h": 307.5
  },
  "luminance": 0.02083
}

Semantic roles & 50–950 ramp

primary
#3C1159
secondary
#5A9234
accent
#EB3D83
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3C1159

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

Preview Lab → · Contrast checker → · Palette generator →

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