#2C1156#2C1156

#2C1156 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.116 H 295.2°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#2C1156
RGBrgb(44, 17, 86)
HSLhsl(263, 67%, 20%)
HSVhsv(263, 80%, 34%)
CMYKcmyk(48.8%, 80.2%, 0%, 66.3%)
CIE-LABlab(13.28, 30.36, -36.51)
CIE-LCHlch(13.28, 47.48, 309.75°)
OKLaboklab(26.6% 0.0491 -0.1046)
OKLCHoklch(26.6% 0.116 295.2)
XYZxyz(2.9184, 1.6082, 8.9589)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1156 #3B5611
analogous
#111956 #2C1156 #4E1156
triadic
#2C1156 #562C11 #11562C
tetradic
#2C1156 #561119 #3B5611 #11564E
square
#2C1156 #561119 #3B5611 #11564E
split-complementary
#2C1156 #564E11 #195611
monochromatic
#0D051A #120723 #2C1156 #461B89 #6025BC

Accessibility & contrast

On white

15.89
#2C1156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2C1156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1156
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1156#FFFFFF#000000##FFFFFF
##2C11561.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002358
Deuteranopia (green-blind)
#002155
Tritanopia (blue-blind)
#202332
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2c1156;
/* rgb */ color: rgb(44, 17, 86);
/* oklch */ color: oklch(26.6% 0.116 295.2);
Tailwind
colors: {
  custom: {
    50: '#6a5286',
    500: '#2c1156',
    950: '#000000',
  },
}
SCSS
$custom: #2c1156;
$custom-light: #6a5286;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1156",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 263.478,
    "s": 66.99,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26603,
    "c": 0.11554,
    "h": 295.2
  },
  "luminance": 0.01608
}

Semantic roles & 50–950 ramp

primary
#2C1156
secondary
#6B8F34
accent
#EA3EA7
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C1156

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

Preview Lab → · Contrast checker → · Palette generator →

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