#2D042F#2D042F

#2D042F is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.6% C 0.090 H 326.1°. Best body text is #FFFFFF at 17.95:1 contrast (WCAG AA passes).

Color values

HEX#2D042F
RGBrgb(45, 4, 47)
HSLhsl(297, 84%, 10%)
HSVhsv(297, 91%, 18%)
CMYKcmyk(4.3%, 91.5%, 0%, 81.6%)
CIE-LABlab(7.68, 27.10, -17.97)
CIE-LCHlch(7.68, 32.52, 326.45°)
OKLaboklab(21.6% 0.0745 -0.05)
OKLCHoklch(21.6% 0.09 326.1)
XYZxyz(1.6387, 0.8501, 2.7665)
Luminance0.0085 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D042F #062F04
analogous
#17042F #2D042F #2F041C
triadic
#2D042F #2F2D04 #042F2D
tetradic
#2D042F #2F1704 #062F04 #041C2F
square
#2D042F #2F1704 #062F04 #041C2F
split-complementary
#2D042F #1C2F04 #042F17
monochromatic
#1B021C #1B021C #2D042F #630967 #990EA0

Accessibility & contrast

On white

17.95
#2D042F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#2D042F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D042F
17.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D042F#FFFFFF#000000##FFFFFF
##2D042F1.0017.951.1717.95
#FFFFFF17.951.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001430
Deuteranopia (green-blind)
#0D192E
Tritanopia (blue-blind)
#2E0B19
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #2d042f;
/* rgb */ color: rgb(45, 4, 47);
/* oklch */ color: oklch(21.6% 0.090 326.1);
Tailwind
colors: {
  custom: {
    50: '#684968',
    500: '#2d042f',
    950: '#000000',
  },
}
SCSS
$custom: #2d042f;
$custom-light: #684968;
$custom-dark: #000000;
JSON
{
  "hex": "#2d042f",
  "rgb": {
    "r": 45,
    "g": 4,
    "b": 47
  },
  "hsl": {
    "h": 297.209,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.21601,
    "c": 0.08971,
    "h": 326.1
  },
  "luminance": 0.0085
}

Semantic roles & 50–950 ramp

primary
#2D042F
secondary
#21721D
accent
#FB2D37
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2D042F

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

Preview Lab → · Contrast checker → · Palette generator →

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