#3C156C#3C156C

#3C156C is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.139 H 298.1°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#3C156C
RGBrgb(60, 21, 108)
HSLhsl(267, 67%, 25%)
HSVhsv(267, 81%, 42%)
CMYKcmyk(44.4%, 80.6%, 0%, 57.6%)
CIE-LABlab(18.27, 37.56, -42.87)
CIE-LCHlch(18.27, 57.00, 311.23°)
OKLaboklab(31.25% 0.0655 -0.1227)
OKLCHoklch(31.25% 0.139 298.1)
XYZxyz(4.8377, 2.5796, 14.4275)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C156C #456C15
analogous
#15196C #3C156C #68156C
triadic
#3C156C #6C3C15 #156C3C
tetradic
#3C156C #6C1519 #456C15 #156C68
square
#3C156C #6C1519 #456C15 #156C68
split-complementary
#3C156C #6C6815 #196C15
monochromatic
#0E051A #200B39 #3C156C #581F9F #7529D2

Accessibility & contrast

On white

13.85
#3C156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3C156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C156C
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C156C#FFFFFF#000000##FFFFFF
##3C156C1.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6E
Deuteranopia (green-blind)
#002C6A
Tritanopia (blue-blind)
#302C40
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3c156c;
/* rgb */ color: rgb(60, 21, 108);
/* oklch */ color: oklch(31.2% 0.139 298.1);
Tailwind
colors: {
  custom: {
    50: '#775797',
    500: '#3c156c',
    950: '#000000',
  },
}
SCSS
$custom: #3c156c;
$custom-light: #775797;
$custom-dark: #000000;
JSON
{
  "hex": "#3c156c",
  "rgb": {
    "r": 60,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 266.897,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31249,
    "c": 0.13904,
    "h": 298.1
  },
  "luminance": 0.0258
}

Semantic roles & 50–950 ramp

primary
#3C156C
secondary
#74A33A
accent
#EA3D9D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3C156C

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

Preview Lab → · Contrast checker → · Palette generator →

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