#2D172E#2D172E

#2D172E is a very dark, muted purple. Relative luminance 0.014; OKLCH L 24.6% C 0.052 H 325.5°. Best body text is #FFFFFF at 16.49:1 contrast (WCAG AA passes).

Color values

HEX#2D172E
RGBrgb(45, 23, 46)
HSLhsl(297, 33%, 14%)
HSVhsv(297, 50%, 18%)
CMYKcmyk(2.2%, 50%, 0%, 82%)
CIE-LABlab(11.74, 15.68, -10.84)
CIE-LCHlch(11.74, 19.06, 325.34°)
OKLaboklab(24.55% 0.0431 -0.0296)
OKLCHoklch(24.55% 0.052 325.5)
XYZxyz(1.8817, 1.3680, 2.7492)
Luminance0.0137 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D172E #182E17
analogous
#21172E #2D172E #2E1723
triadic
#2D172E #2E2D17 #172E2D
tetradic
#2D172E #2E2117 #182E17 #17232E
square
#2D172E #2E2117 #182E17 #17232E
split-complementary
#2D172E #232E17 #172E21
monochromatic
#140A14 #140A14 #2D172E #552B57 #7D4080

Accessibility & contrast

On white

16.49
#2D172E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2D172E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D172E
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D172E#FFFFFF#000000##FFFFFF
##2D172E1.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151D2F
Deuteranopia (green-blind)
#1B202D
Tritanopia (blue-blind)
#2E1920
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2d172e;
/* rgb */ color: rgb(45, 23, 46);
/* oklch */ color: oklch(24.6% 0.052 325.5);
Tailwind
colors: {
  custom: {
    50: '#665466',
    500: '#2d172e',
    950: '#000000',
  },
}
SCSS
$custom: #2d172e;
$custom-light: #665466;
$custom-dark: #000000;
JSON
{
  "hex": "#2d172e",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 46
  },
  "hsl": {
    "h": 297.391,
    "s": 33.333,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24553,
    "c": 0.05229,
    "h": 325.5
  },
  "luminance": 0.01368
}

Semantic roles & 50–950 ramp

primary
#2D172E
secondary
#3F633E
accent
#C95E63
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060306
muted
#7A787A

Preview Lab

Preview with #2D172E

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

Preview Lab → · Contrast checker → · Palette generator →

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