#2C1556#2C1556

#2C1556 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.110 H 294.0°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#2C1556
RGBrgb(44, 21, 86)
HSLhsl(261, 61%, 21%)
HSVhsv(261, 76%, 34%)
CMYKcmyk(48.8%, 75.6%, 0%, 66.3%)
CIE-LABlab(14.08, 28.12, -35.20)
CIE-LCHlch(14.08, 45.05, 308.62°)
OKLaboklab(27.17% 0.0449 -0.1008)
OKLCHoklch(27.17% 0.11 294)
XYZxyz(2.9861, 1.7436, 8.9815)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1556 #3F5615
analogous
#151E56 #2C1556 #4C1556
triadic
#2C1556 #562C15 #15562C
tetradic
#2C1556 #56151E #3F5615 #15564C
square
#2C1556 #56151E #3F5615 #15564C
split-complementary
#2C1556 #564C15 #1E5615
monochromatic
#0D0619 #130925 #2C1556 #452187 #5E2DB8

Accessibility & contrast

On white

15.57
#2C1556 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2C1556 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1556
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1556#FFFFFF#000000##FFFFFF
##2C15561.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002458
Deuteranopia (green-blind)
#002355
Tritanopia (blue-blind)
#202533
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2c1556;
/* rgb */ color: rgb(44, 21, 86);
/* oklch */ color: oklch(27.2% 0.110 294.0);
Tailwind
colors: {
  custom: {
    50: '#6a5486',
    500: '#2c1556',
    950: '#000000',
  },
}
SCSS
$custom: #2c1556;
$custom-light: #6a5486;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1556",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 86
  },
  "hsl": {
    "h": 261.231,
    "s": 60.748,
    "l": 20.98
  },
  "oklch": {
    "l": 0.2717,
    "c": 0.1103,
    "h": 294
  },
  "luminance": 0.01744
}

Semantic roles & 50–950 ramp

primary
#2C1556
secondary
#708E39
accent
#E444AB
background
#F6F4F8
surface
#EBE8EF
border
#C6C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2C1556

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

Preview Lab → · Contrast checker → · Palette generator →

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