#2D042B#2D042B

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

Color values

HEX#2D042B
RGBrgb(45, 4, 43)
HSLhsl(303, 84%, 10%)
HSVhsv(303, 91%, 18%)
CMYKcmyk(0%, 91.1%, 4.4%, 82.4%)
CIE-LABlab(7.40, 26.25, -15.42)
CIE-LCHlch(7.40, 30.44, 329.56°)
OKLaboklab(21.3% 0.0746 -0.0427)
OKLCHoklch(21.3% 0.086 330.2)
XYZxyz(1.5616, 0.8193, 2.3609)
Luminance0.0082 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D042B #042D06
analogous
#1B042D #2D042B #2D0417
triadic
#2D042B #2B2D04 #042B2D
tetradic
#2D042B #2D1B04 #042D06 #04172D
square
#2D042B #2D1B04 #042D06 #04172D
split-complementary
#2D042B #172D04 #042D1B
monochromatic
#1C021B #1C021B #2D042B #650961 #9D0E96

Accessibility & contrast

On white

18.04
#2D042B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D042B
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D042B#FFFFFF#000000##FFFFFF
##2D042B1.0018.041.1618.04
#FFFFFF18.041.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01132C
Deuteranopia (green-blind)
#10182A
Tritanopia (blue-blind)
#2F0917
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2d042b;
/* rgb */ color: rgb(45, 4, 43);
/* oklch */ color: oklch(21.3% 0.086 330.2);
Tailwind
colors: {
  custom: {
    50: '#684964',
    500: '#2d042b',
    950: '#000000',
  },
}
SCSS
$custom: #2d042b;
$custom-light: #684964;
$custom-dark: #000000;
JSON
{
  "hex": "#2d042b",
  "rgb": {
    "r": 45,
    "g": 4,
    "b": 43
  },
  "hsl": {
    "h": 302.927,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.21302,
    "c": 0.08597,
    "h": 330.2
  },
  "luminance": 0.00819
}

Semantic roles & 50–950 ramp

primary
#2D042B
secondary
#1D7021
accent
#FA382E
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060105
muted
#7A777A

Preview Lab

Preview with #2D042B

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

Preview Lab → · Contrast checker → · Palette generator →

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