#2A171E#2A171E

#2A171E is a very dark, muted pink. Relative luminance 0.012; OKLCH L 23.3% C 0.033 H 356.3°. Best body text is #FFFFFF at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#2A171E
RGBrgb(42, 23, 30)
HSLhsl(338, 29%, 13%)
HSVhsv(338, 45%, 16%)
CMYKcmyk(0%, 45.2%, 28.6%, 83.5%)
CIE-LABlab(10.55, 10.86, -0.86)
CIE-LCHlch(10.55, 10.89, 355.45°)
OKLaboklab(23.31% 0.0326 -0.0021)
OKLCHoklch(23.31% 0.033 356.3)
XYZxyz(1.4956, 1.1989, 1.3807)
Luminance0.0120 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A171E #172A23
analogous
#2A1727 #2A171E #2A1917
triadic
#2A171E #1E2A17 #171E2A
tetradic
#2A171E #272A17 #172A23 #19172A
square
#2A171E #272A17 #172A23 #19172A
split-complementary
#2A171E #172A19 #17272A
monochromatic
#140B0E #140B0E #2A171E #522D3A #794256

Accessibility & contrast

On white

16.94
#2A171E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2A171E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A171E
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A171E#FFFFFF#000000##FFFFFF
##2A171E1.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#191B1E
Deuteranopia (green-blind)
#1E1E1E
Tritanopia (blue-blind)
#2D1619
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2a171e;
/* rgb */ color: rgb(42, 23, 30);
/* oklch */ color: oklch(23.3% 0.033 356.3);
Tailwind
colors: {
  custom: {
    50: '#645459',
    500: '#2a171e',
    950: '#000000',
  },
}
SCSS
$custom: #2a171e;
$custom-light: #645459;
$custom-dark: #000000;
JSON
{
  "hex": "#2a171e",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 30
  },
  "hsl": {
    "h": 337.895,
    "s": 29.231,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23309,
    "c": 0.03269,
    "h": 356.3
  },
  "luminance": 0.01199
}

Semantic roles & 50–950 ramp

primary
#2A171E
secondary
#3E5E53
accent
#C5A162
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#050203
muted
#7A7878

Preview Lab

Preview with #2A171E

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

Preview Lab → · Contrast checker → · Palette generator →

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