#2C1228#2C1228

#2C1228 is a very dark, muted purple. Relative luminance 0.011; OKLCH L 23.1% C 0.055 H 333.2°. Best body text is #FFFFFF at 17.15:1 contrast (WCAG AA passes).

Color values

HEX#2C1228
RGBrgb(44, 18, 40)
HSLhsl(309, 42%, 12%)
HSVhsv(309, 59%, 17%)
CMYKcmyk(0%, 59.1%, 9.1%, 82.7%)
CIE-LABlab(9.96, 17.23, -9.18)
CIE-LCHlch(9.96, 19.53, 331.95°)
OKLaboklab(23.09% 0.0494 -0.0249)
OKLCHoklch(23.09% 0.055 333.2)
XYZxyz(1.6380, 1.1214, 2.1372)
Luminance0.0112 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1228 #122C16
analogous
#23122C #2C1228 #2C121B
triadic
#2C1228 #282C12 #12282C
tetradic
#2C1228 #2C2312 #122C16 #121B2C
square
#2C1228 #2C2312 #122C16 #121B2C
split-complementary
#2C1228 #1B2C12 #122C23
monochromatic
#160914 #160914 #2C1228 #57244F #833677

Accessibility & contrast

On white

17.15
#2C1228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2C1228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1228
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1228#FFFFFF#000000##FFFFFF
##2C12281.0017.151.2217.15
#FFFFFF17.151.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121929
Deuteranopia (green-blind)
#191D27
Tritanopia (blue-blind)
#2E141B
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2c1228;
/* rgb */ color: rgb(44, 18, 40);
/* oklch */ color: oklch(23.1% 0.055 333.2);
Tailwind
colors: {
  custom: {
    50: '#665162',
    500: '#2c1228',
    950: '#000000',
  },
}
SCSS
$custom: #2c1228;
$custom-light: #665162;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1228",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 40
  },
  "hsl": {
    "h": 309.231,
    "s": 41.935,
    "l": 12.157
  },
  "oklch": {
    "l": 0.23086,
    "c": 0.05533,
    "h": 333.2
  },
  "luminance": 0.01121
}

Semantic roles & 50–950 ramp

primary
#2C1228
secondary
#36633D
accent
#D26956
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#060205
muted
#7A7879

Preview Lab

Preview with #2C1228

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

Preview Lab → · Contrast checker → · Palette generator →

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