#2C1234#2C1234

#2C1234 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.8% C 0.070 H 317.7°. Best body text is #FFFFFF at 16.89:1 contrast (WCAG AA passes).

Color values

HEX#2C1234
RGBrgb(44, 18, 52)
HSLhsl(286, 49%, 14%)
HSVhsv(286, 65%, 20%)
CMYKcmyk(15.4%, 65.4%, 0%, 79.6%)
CIE-LABlab(10.68, 20.11, -16.89)
CIE-LCHlch(10.68, 26.27, 319.98°)
OKLaboklab(23.84% 0.0517 -0.047)
OKLCHoklch(23.84% 0.07 317.7)
XYZxyz(1.8748, 1.2161, 3.3841)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1234 #1A3412
analogous
#1B1234 #2C1234 #34122B
triadic
#2C1234 #342C12 #12342C
tetradic
#2C1234 #341B12 #1A3412 #122B34
square
#2C1234 #341B12 #1A3412 #122B34
split-complementary
#2C1234 #2B3412 #12341B
monochromatic
#130817 #130817 #2C1234 #522261 #79318F

Accessibility & contrast

On white

16.89
#2C1234 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1234
16.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1234#FFFFFF#000000##FFFFFF
##2C12341.0016.891.2416.89
#FFFFFF16.891.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1B35
Deuteranopia (green-blind)
#131E33
Tritanopia (blue-blind)
#2C1720
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2c1234;
/* rgb */ color: rgb(44, 18, 52);
/* oklch */ color: oklch(23.8% 0.070 317.7);
Tailwind
colors: {
  custom: {
    50: '#66516b',
    500: '#2c1234',
    950: '#000000',
  },
}
SCSS
$custom: #2c1234;
$custom-light: #66516b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1234",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 52
  },
  "hsl": {
    "h": 285.882,
    "s": 48.571,
    "l": 13.725
  },
  "oklch": {
    "l": 0.23844,
    "c": 0.06987,
    "h": 317.7
  },
  "luminance": 0.01216
}

Semantic roles & 50–950 ramp

primary
#2C1234
secondary
#426C35
accent
#D85070
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060206
muted
#7A787A

Preview Lab

Preview with #2C1234

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

Preview Lab → · Contrast checker → · Palette generator →

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