#2C1231#2C1231

#2C1231 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.6% C 0.066 H 321.0°. Best body text is #FFFFFF at 16.96:1 contrast (WCAG AA passes).

Color values

HEX#2C1231
RGBrgb(44, 18, 49)
HSLhsl(290, 46%, 13%)
HSVhsv(290, 63%, 19%)
CMYKcmyk(10.2%, 63.3%, 0%, 80.8%)
CIE-LABlab(10.48, 19.35, -15.01)
CIE-LCHlch(10.48, 24.49, 322.20°)
OKLaboklab(23.64% 0.0513 -0.0416)
OKLCHoklch(23.64% 0.066 321)
XYZxyz(1.8093, 1.1899, 3.0395)
Luminance0.0119 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1231 #173112
analogous
#1C1231 #2C1231 #311226
triadic
#2C1231 #312C12 #12312C
tetradic
#2C1231 #311C12 #173112 #122631
square
#2C1231 #311C12 #173112 #122631
split-complementary
#2C1231 #263112 #12311C
monochromatic
#140816 #140816 #2C1231 #54225E #7C338B

Accessibility & contrast

On white

16.96
#2C1231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2C1231 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1231
16.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1231#FFFFFF#000000##FFFFFF
##2C12311.0016.961.2416.96
#FFFFFF16.961.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1B32
Deuteranopia (green-blind)
#151D30
Tritanopia (blue-blind)
#2C161F
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2c1231;
/* rgb */ color: rgb(44, 18, 49);
/* oklch */ color: oklch(23.6% 0.066 321.0);
Tailwind
colors: {
  custom: {
    50: '#665169',
    500: '#2c1231',
    950: '#000000',
  },
}
SCSS
$custom: #2c1231;
$custom-light: #665169;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1231",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 49
  },
  "hsl": {
    "h": 290.323,
    "s": 46.269,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23639,
    "c": 0.06604,
    "h": 321
  },
  "luminance": 0.0119
}

Semantic roles & 50–950 ramp

primary
#2C1231
secondary
#3E6936
accent
#D65267
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060206
muted
#7A787A

Preview Lab

Preview with #2C1231

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

Preview Lab → · Contrast checker → · Palette generator →

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