#3C156E#3C156E

#3C156E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.141 H 297.3°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#3C156E
RGBrgb(60, 21, 110)
HSLhsl(266, 68%, 26%)
HSVhsv(266, 81%, 43%)
CMYKcmyk(45.5%, 80.9%, 0%, 56.9%)
CIE-LABlab(18.46, 38.11, -43.86)
CIE-LCHlch(18.46, 58.10, 310.99°)
OKLaboklab(31.44% 0.0649 -0.1256)
OKLCHoklch(31.44% 0.141 297.3)
XYZxyz(4.9454, 2.6227, 14.9945)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C156E #476E15
analogous
#151A6E #3C156E #68156E
triadic
#3C156E #6E3C15 #156E3C
tetradic
#3C156E #6E151A #476E15 #156E68
square
#3C156E #6E151A #476E15 #156E68
split-complementary
#3C156E #6E6815 #1A6E15
monochromatic
#0E051A #200B3B #3C156E #581FA1 #7429D5

Accessibility & contrast

On white

13.77
#3C156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3C156E
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C156E#FFFFFF#000000##FFFFFF
##3C156E1.0013.771.5213.77
#FFFFFF13.771.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#002C6C
Tritanopia (blue-blind)
#2F2D41
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3c156e;
/* rgb */ color: rgb(60, 21, 110);
/* oklch */ color: oklch(31.4% 0.141 297.3);
Tailwind
colors: {
  custom: {
    50: '#785798',
    500: '#3c156e',
    950: '#000000',
  },
}
SCSS
$custom: #3c156e;
$custom-light: #785798;
$custom-dark: #000000;
JSON
{
  "hex": "#3c156e",
  "rgb": {
    "r": 60,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 266.292,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3144,
    "c": 0.14135,
    "h": 297.3
  },
  "luminance": 0.02623
}

Semantic roles & 50–950 ramp

primary
#3C156E
secondary
#76A43A
accent
#EB3D9F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3C156E

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

Preview Lab → · Contrast checker → · Palette generator →

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