#2C156A#2C156A

#2C156A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.136 H 286.9°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#2C156A
RGBrgb(44, 21, 106)
HSLhsl(256, 67%, 25%)
HSVhsv(256, 80%, 42%)
CMYKcmyk(58.5%, 80.2%, 0%, 58.4%)
CIE-LABlab(16.07, 34.36, -45.26)
CIE-LCHlch(16.07, 56.82, 307.20°)
OKLaboklab(29.18% 0.0397 -0.1303)
OKLCHoklch(29.18% 0.136 286.9)
XYZxyz(3.9076, 2.1122, 13.8347)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C156A #536A15
analogous
#15296A #2C156A #56156A
triadic
#2C156A #6A2C15 #156A2C
tetradic
#2C156A #6A1529 #536A15 #156A56
square
#2C156A #6A1529 #536A15 #156A56
split-complementary
#2C156A #6A5615 #296A15
monochromatic
#0B051A #170B37 #2C156A #411F9D #5629D0

Accessibility & contrast

On white

14.76
#2C156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2C156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C156A
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C156A#FFFFFF#000000##FFFFFF
##2C156A1.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002568
Tritanopia (blue-blind)
#102D3F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2c156a;
/* rgb */ color: rgb(44, 21, 106);
/* oklch */ color: oklch(29.2% 0.136 286.9);
Tailwind
colors: {
  custom: {
    50: '#6d5596',
    500: '#2c156a',
    950: '#000000',
  },
}
SCSS
$custom: #2c156a;
$custom-light: #6d5596;
$custom-dark: #000000;
JSON
{
  "hex": "#2c156a",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 256.235,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29182,
    "c": 0.13618,
    "h": 286.9
  },
  "luminance": 0.02112
}

Semantic roles & 50–950 ramp

primary
#2C156A
secondary
#85A13A
accent
#EA3EBB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2C156A

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

Preview Lab → · Contrast checker → · Palette generator →

#2C156A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva