#2D022F#2D022F

#2D022F is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.3% C 0.094 H 326.3°. Best body text is #FFFFFF at 18.08:1 contrast (WCAG AA passes).

Color values

HEX#2D022F
RGBrgb(45, 2, 47)
HSLhsl(297, 92%, 10%)
HSVhsv(297, 96%, 18%)
CMYKcmyk(4.3%, 95.7%, 0%, 81.6%)
CIE-LABlab(7.29, 28.22, -18.60)
CIE-LCHlch(7.29, 33.80, 326.62°)
OKLaboklab(21.31% 0.0778 -0.0519)
OKLCHoklch(21.31% 0.094 326.3)
XYZxyz(1.6170, 0.8067, 2.7593)
Luminance0.0081 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D022F #042F02
analogous
#17022F #2D022F #2F021B
triadic
#2D022F #2F2D02 #022F2D
tetradic
#2D022F #2F1702 #042F02 #021B2F
square
#2D022F #2F1702 #042F02 #021B2F
split-complementary
#2D022F #1B2F02 #022F17
monochromatic
#1C011D #1C011D #2D022F #65046A #9D07A4

Accessibility & contrast

On white

18.08
#2D022F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#2D022F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D022F
18.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D022F#FFFFFF#000000##FFFFFF
##2D022F1.0018.081.1618.08
#FFFFFF18.081.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001330
Deuteranopia (green-blind)
#0C182E
Tritanopia (blue-blind)
#2E0918
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2d022f;
/* rgb */ color: rgb(45, 2, 47);
/* oklch */ color: oklch(21.3% 0.094 326.3);
Tailwind
colors: {
  custom: {
    50: '#684868',
    500: '#2d022f',
    950: '#000000',
  },
}
SCSS
$custom: #2d022f;
$custom-light: #684868;
$custom-dark: #000000;
JSON
{
  "hex": "#2d022f",
  "rgb": {
    "r": 45,
    "g": 2,
    "b": 47
  },
  "hsl": {
    "h": 297.333,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.21311,
    "c": 0.09353,
    "h": 326.3
  },
  "luminance": 0.00807
}

Semantic roles & 50–950 ramp

primary
#2D022F
secondary
#1D7419
accent
#FF2932
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2D022F

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

Preview Lab → · Contrast checker → · Palette generator →

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