#3C158D#3C158D

#3C158D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.6% C 0.176 H 287.8°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#3C158D
RGBrgb(60, 21, 141)
HSLhsl(260, 74%, 32%)
HSVhsv(260, 85%, 55%)
CMYKcmyk(57.4%, 85.1%, 0%, 44.7%)
CIE-LABlab(21.65, 46.67, -58.34)
CIE-LCHlch(21.65, 74.71, 308.66°)
OKLaboklab(34.61% 0.054 -0.168)
OKLCHoklch(34.61% 0.176 287.8)
XYZxyz(6.9379, 3.4197, 25.4886)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C158D #668D15
analogous
#152A8D #3C158D #78158D
triadic
#3C158D #8D3C15 #158D3C
tetradic
#3C158D #8D152A #668D15 #158D78
square
#3C158D #8D152A #668D15 #158D78
split-complementary
#3C158D #8D7815 #2A8D15
monochromatic
#0F0522 #250D58 #3C158D #531DC2 #713BE2

Accessibility & contrast

On white

12.47
#3C158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3C158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C158D
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C158D#FFFFFF#000000##FFFFFF
##3C158D1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#173A53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3c158d;
/* rgb */ color: rgb(60, 21, 141);
/* oklch */ color: oklch(34.6% 0.176 287.8);
Tailwind
colors: {
  custom: {
    50: '#7c59b0',
    500: '#3c158d',
    950: '#000000',
  },
}
SCSS
$custom: #3c158d;
$custom-light: #7c59b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3c158d",
  "rgb": {
    "r": 60,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 259.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34609,
    "c": 0.17644,
    "h": 287.8
  },
  "luminance": 0.0342
}

Semantic roles & 50–950 ramp

primary
#3C158D
secondary
#96C13D
accent
#F137B4
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3C158D

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

Preview Lab → · Contrast checker → · Palette generator →

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