#3C156F#3C156F

#3C156F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.142 H 297.0°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#3C156F
RGBrgb(60, 21, 111)
HSLhsl(266, 68%, 26%)
HSVhsv(266, 81%, 44%)
CMYKcmyk(45.9%, 81.1%, 0%, 56.5%)
CIE-LABlab(18.56, 38.38, -44.35)
CIE-LCHlch(18.56, 58.65, 310.87°)
OKLaboklab(31.54% 0.0646 -0.127)
OKLCHoklch(31.54% 0.143 297)
XYZxyz(5.0001, 2.6446, 15.2829)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C156F #486F15
analogous
#151B6F #3C156F #69156F
triadic
#3C156F #6F3C15 #156F3C
tetradic
#3C156F #6F151B #486F15 #156F69
square
#3C156F #6F151B #486F15 #156F69
split-complementary
#3C156F #6F6915 #1B6F15
monochromatic
#0E051A #200B3C #3C156F #581FA2 #7428D6

Accessibility & contrast

On white

13.73
#3C156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3C156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C156F
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C156F#FFFFFF#000000##FFFFFF
##3C156F1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#2E2E42
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3c156f;
/* rgb */ color: rgb(60, 21, 111);
/* oklch */ color: oklch(31.5% 0.142 297.0);
Tailwind
colors: {
  custom: {
    50: '#785799',
    500: '#3c156f',
    950: '#000000',
  },
}
SCSS
$custom: #3c156f;
$custom-light: #785799;
$custom-dark: #000000;
JSON
{
  "hex": "#3c156f",
  "rgb": {
    "r": 60,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 266,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31536,
    "c": 0.1425,
    "h": 297
  },
  "luminance": 0.02645
}

Semantic roles & 50–950 ramp

primary
#3C156F
secondary
#77A53A
accent
#EB3DA0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3C156F

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

Preview Lab → · Contrast checker → · Palette generator →

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