#2D172F#2D172F

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

Color values

HEX#2D172F
RGBrgb(45, 23, 47)
HSLhsl(295, 34%, 14%)
HSVhsv(295, 51%, 18%)
CMYKcmyk(4.3%, 51.1%, 0%, 81.6%)
CIE-LABlab(11.80, 15.92, -11.49)
CIE-LCHlch(11.80, 19.63, 324.19°)
OKLaboklab(24.61% 0.0433 -0.0315)
OKLCHoklch(24.61% 0.054 324)
XYZxyz(1.9016, 1.3760, 2.8542)
Luminance0.0138 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D172F #192F17
analogous
#21172F #2D172F #2F1725
triadic
#2D172F #2F2D17 #172F2D
tetradic
#2D172F #2F2117 #192F17 #17252F
square
#2D172F #2F2117 #192F17 #17252F
split-complementary
#2D172F #252F17 #172F21
monochromatic
#140A15 #140A15 #2D172F #542B58 #7C3F81

Accessibility & contrast

On white

16.47
#2D172F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2D172F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D172F
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D172F#FFFFFF#000000##FFFFFF
##2D172F1.0016.471.2816.47
#FFFFFF16.471.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#141D30
Deuteranopia (green-blind)
#1A202E
Tritanopia (blue-blind)
#2E1A20
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2d172f;
/* rgb */ color: rgb(45, 23, 47);
/* oklch */ color: oklch(24.6% 0.054 324.0);
Tailwind
colors: {
  custom: {
    50: '#665467',
    500: '#2d172f',
    950: '#000000',
  },
}
SCSS
$custom: #2d172f;
$custom-light: #665467;
$custom-dark: #000000;
JSON
{
  "hex": "#2d172f",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 295,
    "s": 34.286,
    "l": 13.725
  },
  "oklch": {
    "l": 0.24611,
    "c": 0.05357,
    "h": 324
  },
  "luminance": 0.01376
}

Semantic roles & 50–950 ramp

primary
#2D172F
secondary
#41643D
accent
#CA5D67
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060306
muted
#7A787A

Preview Lab

Preview with #2D172F

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

Preview Lab → · Contrast checker → · Palette generator →

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