#2C156C#2C156C

#2C156C is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.139 H 286.4°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#2C156C
RGBrgb(44, 21, 108)
HSLhsl(256, 67%, 25%)
HSVhsv(256, 81%, 42%)
CMYKcmyk(59.3%, 80.6%, 0%, 57.6%)
CIE-LABlab(16.28, 34.98, -46.22)
CIE-LCHlch(16.28, 57.96, 307.12°)
OKLaboklab(29.39% 0.0391 -0.1331)
OKLCHoklch(29.39% 0.139 286.4)
XYZxyz(4.0128, 2.1543, 14.3888)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C156C #556C15
analogous
#15296C #2C156C #57156C
triadic
#2C156C #6C2C15 #156C2C
tetradic
#2C156C #6C1529 #556C15 #156C57
square
#2C156C #6C1529 #556C15 #156C57
split-complementary
#2C156C #6C5715 #296C15
monochromatic
#0A051A #170B39 #2C156C #411F9F #5629D2

Accessibility & contrast

On white

14.68
#2C156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2C156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C156C
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C156C#FFFFFF#000000##FFFFFF
##2C156C1.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00266A
Tritanopia (blue-blind)
#0E2E40
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2c156c;
/* rgb */ color: rgb(44, 21, 108);
/* oklch */ color: oklch(29.4% 0.139 286.4);
Tailwind
colors: {
  custom: {
    50: '#6e5597',
    500: '#2c156c',
    950: '#000000',
  },
}
SCSS
$custom: #2c156c;
$custom-light: #6e5597;
$custom-dark: #000000;
JSON
{
  "hex": "#2c156c",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 255.862,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29394,
    "c": 0.13869,
    "h": 286.4
  },
  "luminance": 0.02155
}

Semantic roles & 50–950 ramp

primary
#2C156C
secondary
#87A33A
accent
#EA3DBD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C156C

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

Preview Lab → · Contrast checker → · Palette generator →

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