#2D012C#2D012C

#2D012C is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 20.9% C 0.093 H 329.3°. Best body text is #FFFFFF at 18.23:1 contrast (WCAG AA passes).

Color values

HEX#2D012C
RGBrgb(45, 1, 44)
HSLhsl(301, 96%, 9%)
HSVhsv(301, 98%, 18%)
CMYKcmyk(0%, 97.8%, 2.2%, 82.4%)
CIE-LABlab(6.88, 28.11, -17.00)
CIE-LCHlch(6.88, 32.85, 328.84°)
OKLaboklab(20.93% 0.0799 -0.0474)
OKLCHoklch(20.93% 0.093 329.3)
XYZxyz(1.5477, 0.7616, 2.4479)
Luminance0.0076 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D012C #012D02
analogous
#18012D #2D012C #2D0116
triadic
#2D012C #2C2D01 #012C2D
tetradic
#2D012C #2D1801 #012D02 #01162D
square
#2D012C #2D1801 #012D02 #01162D
split-complementary
#2D012C #162D01 #012D18
monochromatic
#1E011D #1E011D #2D012C #690267 #A504A1

Accessibility & contrast

On white

18.23
#2D012C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D012C
18.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D012C#FFFFFF#000000##FFFFFF
##2D012C1.0018.231.1518.23
#FFFFFF18.231.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112D
Deuteranopia (green-blind)
#0D172B
Tritanopia (blue-blind)
#2F0616
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #2d012c;
/* rgb */ color: rgb(45, 1, 44);
/* oklch */ color: oklch(20.9% 0.093 329.3);
Tailwind
colors: {
  custom: {
    50: '#684765',
    500: '#2d012c',
    950: '#000000',
  },
}
SCSS
$custom: #2d012c;
$custom-light: #684765;
$custom-dark: #000000;
JSON
{
  "hex": "#2d012c",
  "rgb": {
    "r": 45,
    "g": 1,
    "b": 44
  },
  "hsl": {
    "h": 301.364,
    "s": 95.652,
    "l": 9.02
  },
  "oklch": {
    "l": 0.20926,
    "c": 0.0929,
    "h": 329.3
  },
  "luminance": 0.00761
}

Semantic roles & 50–950 ramp

primary
#2D012C
secondary
#177319
accent
#FF2E29
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060005
muted
#7A777A

Preview Lab

Preview with #2D012C

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

Preview Lab → · Contrast checker → · Palette generator →

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