#2F171E#2F171E

#2F171E is a very dark, muted pink. Relative luminance 0.013; OKLCH L 24.1% C 0.040 H 1.8°. Best body text is #FFFFFF at 16.64:1 contrast (WCAG AA passes).

Color values

HEX#2F171E
RGBrgb(47, 23, 30)
HSLhsl(343, 34%, 14%)
HSVhsv(343, 51%, 18%)
CMYKcmyk(0%, 51.1%, 36.2%, 81.6%)
CIE-LABlab(11.35, 13.20, 0.41)
CIE-LCHlch(11.35, 13.20, 1.76°)
OKLaboklab(24.09% 0.04 0.0012)
OKLCHoklch(24.09% 0.04 1.8)
XYZxyz(1.7131, 1.3110, 1.3909)
Luminance0.0131 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F171E #172F28
analogous
#2F172A #2F171E #2F1C17
triadic
#2F171E #1E2F17 #171E2F
tetradic
#2F171E #2A2F17 #172F28 #1C172F
square
#2F171E #2A2F17 #172F28 #1C172F
split-complementary
#2F171E #172F1C #172A2F
monochromatic
#150A0D #150A0D #2F171E #582B38 #813F52

Accessibility & contrast

On white

16.64
#2F171E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2F171E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F171E
16.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F171E#FFFFFF#000000##FFFFFF
##2F171E1.0016.641.2616.64
#FFFFFF16.641.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B1B1E
Deuteranopia (green-blind)
#21201D
Tritanopia (blue-blind)
#331519
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2f171e;
/* rgb */ color: rgb(47, 23, 30);
/* oklch */ color: oklch(24.1% 0.040 1.8);
Tailwind
colors: {
  custom: {
    50: '#685459',
    500: '#2f171e',
    950: '#000000',
  },
}
SCSS
$custom: #2f171e;
$custom-light: #685459;
$custom-dark: #000000;
JSON
{
  "hex": "#2f171e",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 30
  },
  "hsl": {
    "h": 342.5,
    "s": 34.286,
    "l": 13.725
  },
  "oklch": {
    "l": 0.24093,
    "c": 0.03998,
    "h": 1.8
  },
  "luminance": 0.01311
}

Semantic roles & 50–950 ramp

primary
#2F171E
secondary
#3D6459
accent
#CAAB5D
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#060203
muted
#7A7878

Preview Lab

Preview with #2F171E

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

Preview Lab → · Contrast checker → · Palette generator →

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