#2C012D#2C012D

#2C012D is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.8% C 0.093 H 327.3°. Best body text is #FFFFFF at 18.27:1 contrast (WCAG AA passes).

Color values

HEX#2C012D
RGBrgb(44, 1, 45)
HSLhsl(299, 96%, 9%)
HSVhsv(299, 98%, 18%)
CMYKcmyk(2.2%, 97.8%, 0%, 82.4%)
CIE-LABlab(6.75, 28.02, -17.97)
CIE-LCHlch(6.75, 33.29, 327.32°)
OKLaboklab(20.8% 0.0785 -0.0504)
OKLCHoklch(20.8% 0.093 327.3)
XYZxyz(1.5232, 0.7468, 2.5460)
Luminance0.0075 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C012D #022D01
analogous
#16012D #2C012D #2D0118
triadic
#2C012D #2D2C01 #012D2C
tetradic
#2C012D #2D1601 #022D01 #01182D
square
#2C012D #2D1601 #022D01 #01182D
split-complementary
#2C012D #182D01 #012D16
monochromatic
#1D011E #1D011E #2C012D #670269 #A104A5

Accessibility & contrast

On white

18.27
#2C012D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#2C012D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C012D
18.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C012D#FFFFFF#000000##FFFFFF
##2C012D1.0018.271.1518.27
#FFFFFF18.271.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112E
Deuteranopia (green-blind)
#0C172C
Tritanopia (blue-blind)
#2E0717
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #2c012d;
/* rgb */ color: rgb(44, 1, 45);
/* oklch */ color: oklch(20.8% 0.093 327.3);
Tailwind
colors: {
  custom: {
    50: '#674766',
    500: '#2c012d',
    950: '#000000',
  },
}
SCSS
$custom: #2c012d;
$custom-light: #674766;
$custom-dark: #000000;
JSON
{
  "hex": "#2c012d",
  "rgb": {
    "r": 44,
    "g": 1,
    "b": 45
  },
  "hsl": {
    "h": 298.636,
    "s": 95.652,
    "l": 9.02
  },
  "oklch": {
    "l": 0.20804,
    "c": 0.09327,
    "h": 327.3
  },
  "luminance": 0.00747
}

Semantic roles & 50–950 ramp

primary
#2C012D
secondary
#197317
accent
#FF292E
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060006
muted
#7A777A

Preview Lab

Preview with #2C012D

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

Preview Lab → · Contrast checker → · Palette generator →

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