#2D012A#2D012A

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

Color values

HEX#2D012A
RGBrgb(45, 1, 42)
HSLhsl(304, 96%, 9%)
HSVhsv(304, 98%, 18%)
CMYKcmyk(0%, 97.8%, 6.7%, 82.4%)
CIE-LABlab(6.75, 27.68, -15.70)
CIE-LCHlch(6.75, 31.82, 330.43°)
OKLaboklab(20.78% 0.08 -0.0437)
OKLCHoklch(20.78% 0.091 331.3)
XYZxyz(1.5110, 0.7469, 2.2546)
Luminance0.0075 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D012A #012D04
analogous
#1A012D #2D012A #2D0114
triadic
#2D012A #2A2D01 #012A2D
tetradic
#2D012A #2D1A01 #012D04 #01142D
square
#2D012A #2D1A01 #012D04 #01142D
split-complementary
#2D012A #142D01 #012D1A
monochromatic
#1E011C #1E011C #2D012A #690262 #A5049A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D012A#FFFFFF#000000##FFFFFF
##2D012A1.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)
#00112B
Deuteranopia (green-blind)
#0F1729
Tritanopia (blue-blind)
#2F0515
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #2d012a;
/* rgb */ color: rgb(45, 1, 42);
/* oklch */ color: oklch(20.8% 0.091 331.3);
Tailwind
colors: {
  custom: {
    50: '#684763',
    500: '#2d012a',
    950: '#000000',
  },
}
SCSS
$custom: #2d012a;
$custom-light: #684763;
$custom-dark: #000000;
JSON
{
  "hex": "#2d012a",
  "rgb": {
    "r": 45,
    "g": 1,
    "b": 42
  },
  "hsl": {
    "h": 304.091,
    "s": 95.652,
    "l": 9.02
  },
  "oklch": {
    "l": 0.20775,
    "c": 0.09119,
    "h": 331.3
  },
  "luminance": 0.00747
}

Semantic roles & 50–950 ramp

primary
#2D012A
secondary
#17731D
accent
#FF3729
background
#F6F4F5
surface
#EBE6EA
border
#C6C2C6
text
#060005
muted
#7A7779

Preview Lab

Preview with #2D012A

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

Preview Lab → · Contrast checker → · Palette generator →

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