#2C1235#2C1235

#2C1235 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.9% C 0.071 H 316.6°. Best body text is #FFFFFF at 16.87:1 contrast (WCAG AA passes).

Color values

HEX#2C1235
RGBrgb(44, 18, 53)
HSLhsl(285, 49%, 14%)
HSVhsv(285, 66%, 21%)
CMYKcmyk(17%, 66%, 0%, 79.2%)
CIE-LABlab(10.74, 20.37, -17.51)
CIE-LCHlch(10.74, 26.86, 319.32°)
OKLaboklab(23.91% 0.0517 -0.0488)
OKLCHoklch(23.91% 0.071 316.6)
XYZxyz(1.8975, 1.2252, 3.5040)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1235 #1B3512
analogous
#1B1235 #2C1235 #35122D
triadic
#2C1235 #352C12 #12352C
tetradic
#2C1235 #351B12 #1B3512 #122D35
square
#2C1235 #351B12 #1B3512 #122D35
split-complementary
#2C1235 #2D3512 #12351B
monochromatic
#130817 #130817 #2C1235 #522263 #783190

Accessibility & contrast

On white

16.87
#2C1235 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1235
16.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1235#FFFFFF#000000##FFFFFF
##2C12351.0016.871.2416.87
#FFFFFF16.871.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1B36
Deuteranopia (green-blind)
#131E34
Tritanopia (blue-blind)
#2C1821
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2c1235;
/* rgb */ color: rgb(44, 18, 53);
/* oklch */ color: oklch(23.9% 0.071 316.6);
Tailwind
colors: {
  custom: {
    50: '#66516c',
    500: '#2c1235',
    950: '#000000',
  },
}
SCSS
$custom: #2c1235;
$custom-light: #66516c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1235",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 53
  },
  "hsl": {
    "h": 284.571,
    "s": 49.296,
    "l": 13.922
  },
  "oklch": {
    "l": 0.23914,
    "c": 0.07116,
    "h": 316.6
  },
  "luminance": 0.01225
}

Semantic roles & 50–950 ramp

primary
#2C1235
secondary
#446D35
accent
#D94F72
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060207
muted
#7A787A

Preview Lab

Preview with #2C1235

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

Preview Lab → · Contrast checker → · Palette generator →

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