#2C012A#2C012A

#2C012A is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.6% C 0.091 H 330.3°. Best body text is #FFFFFF at 18.34:1 contrast (WCAG AA passes).

Color values

HEX#2C012A
RGBrgb(44, 1, 42)
HSLhsl(303, 96%, 9%)
HSVhsv(303, 98%, 17%)
CMYKcmyk(0%, 97.7%, 4.5%, 82.7%)
CIE-LABlab(6.54, 27.33, -16.03)
CIE-LCHlch(6.54, 31.69, 329.60°)
OKLaboklab(20.57% 0.0788 -0.0449)
OKLCHoklch(20.57% 0.091 330.3)
XYZxyz(1.4675, 0.7245, 2.2526)
Luminance0.0072 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C012A #012C03
analogous
#19012C #2C012A #2C0115
triadic
#2C012A #2A2C01 #012A2C
tetradic
#2C012A #2C1901 #012C03 #01152C
square
#2C012A #2C1901 #012C03 #01152C
split-complementary
#2C012A #152C01 #012C19
monochromatic
#1E011D #1E011D #2C012A #680263 #A4049C

Accessibility & contrast

On white

18.34
#2C012A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#2C012A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C012A
18.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C012A#FFFFFF#000000##FFFFFF
##2C012A1.0018.341.1418.34
#FFFFFF18.341.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112B
Deuteranopia (green-blind)
#0E1729
Tritanopia (blue-blind)
#2E0615
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #2c012a;
/* rgb */ color: rgb(44, 1, 42);
/* oklch */ color: oklch(20.6% 0.091 330.3);
Tailwind
colors: {
  custom: {
    50: '#674763',
    500: '#2c012a',
    950: '#000000',
  },
}
SCSS
$custom: #2c012a;
$custom-light: #674763;
$custom-dark: #000000;
JSON
{
  "hex": "#2c012a",
  "rgb": {
    "r": 44,
    "g": 1,
    "b": 42
  },
  "hsl": {
    "h": 302.791,
    "s": 95.556,
    "l": 8.824
  },
  "oklch": {
    "l": 0.20571,
    "c": 0.09068,
    "h": 330.3
  },
  "luminance": 0.00724
}

Semantic roles & 50–950 ramp

primary
#2C012A
secondary
#17721B
accent
#FF3329
background
#F6F4F5
surface
#EBE6EA
border
#C6C2C6
text
#060005
muted
#7A7779

Preview Lab

Preview with #2C012A

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

Preview Lab → · Contrast checker → · Palette generator →

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