#2C1237#2C1237

#2C1237 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.1% C 0.074 H 314.7°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#2C1237
RGBrgb(44, 18, 55)
HSLhsl(282, 51%, 14%)
HSVhsv(282, 67%, 22%)
CMYKcmyk(20%, 67.3%, 0%, 78.4%)
CIE-LABlab(10.88, 20.90, -18.74)
CIE-LCHlch(10.88, 28.07, 318.12°)
OKLaboklab(24.06% 0.0519 -0.0524)
OKLCHoklch(24.06% 0.074 314.7)
XYZxyz(1.9445, 1.2440, 3.7514)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1237 #1D3712
analogous
#1A1237 #2C1237 #371230
triadic
#2C1237 #372C12 #12372C
tetradic
#2C1237 #371A12 #1D3712 #123037
square
#2C1237 #371A12 #1D3712 #123037
split-complementary
#2C1237 #303712 #12371A
monochromatic
#120817 #120817 #2C1237 #512165 #763093

Accessibility & contrast

On white

16.82
#2C1237 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2C1237 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1237
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1237#FFFFFF#000000##FFFFFF
##2C12371.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081C38
Deuteranopia (green-blind)
#111E36
Tritanopia (blue-blind)
#2B1822
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2c1237;
/* rgb */ color: rgb(44, 18, 55);
/* oklch */ color: oklch(24.1% 0.074 314.7);
Tailwind
colors: {
  custom: {
    50: '#66516e',
    500: '#2c1237',
    950: '#000000',
  },
}
SCSS
$custom: #2c1237;
$custom-light: #66516e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1237",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 55
  },
  "hsl": {
    "h": 282.162,
    "s": 50.685,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24058,
    "c": 0.07376,
    "h": 314.7
  },
  "luminance": 0.01244
}

Semantic roles & 50–950 ramp

primary
#2C1237
secondary
#477035
accent
#DA4E77
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060207
muted
#7A787A

Preview Lab

Preview with #2C1237

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

Preview Lab → · Contrast checker → · Palette generator →

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