#2D012B#2D012B

#2D012B is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 20.8% C 0.092 H 330.3°. Best body text is #FFFFFF at 18.25:1 contrast (WCAG AA passes).

Color values

HEX#2D012B
RGBrgb(45, 1, 43)
HSLhsl(303, 96%, 9%)
HSVhsv(303, 98%, 18%)
CMYKcmyk(0%, 97.8%, 4.4%, 82.4%)
CIE-LABlab(6.81, 27.90, -16.35)
CIE-LCHlch(6.81, 32.34, 329.62°)
OKLaboklab(20.85% 0.08 -0.0456)
OKLCHoklch(20.85% 0.092 330.3)
XYZxyz(1.5291, 0.7541, 2.3501)
Luminance0.0075 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D012B #012D03
analogous
#19012D #2D012B #2D0115
triadic
#2D012B #2B2D01 #012B2D
tetradic
#2D012B #2D1901 #012D03 #01152D
square
#2D012B #2D1901 #012D03 #01152D
split-complementary
#2D012B #152D01 #012D19
monochromatic
#1E011D #1E011D #2D012B #690264 #A5049D

Accessibility & contrast

On white

18.25
#2D012B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D012B
18.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D012B#FFFFFF#000000##FFFFFF
##2D012B1.0018.251.1518.25
#FFFFFF18.251.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112C
Deuteranopia (green-blind)
#0E172A
Tritanopia (blue-blind)
#2F0615
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #2d012b;
/* rgb */ color: rgb(45, 1, 43);
/* oklch */ color: oklch(20.8% 0.092 330.3);
Tailwind
colors: {
  custom: {
    50: '#684764',
    500: '#2d012b',
    950: '#000000',
  },
}
SCSS
$custom: #2d012b;
$custom-light: #684764;
$custom-dark: #000000;
JSON
{
  "hex": "#2d012b",
  "rgb": {
    "r": 45,
    "g": 1,
    "b": 43
  },
  "hsl": {
    "h": 302.727,
    "s": 95.652,
    "l": 9.02
  },
  "oklch": {
    "l": 0.2085,
    "c": 0.09204,
    "h": 330.3
  },
  "luminance": 0.00754
}

Semantic roles & 50–950 ramp

primary
#2D012B
secondary
#17731B
accent
#FF3329
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060005
muted
#7A777A

Preview Lab

Preview with #2D012B

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

Preview Lab → · Contrast checker → · Palette generator →

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