#2F162E#2F162E

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

Color values

HEX#2F162E
RGBrgb(47, 22, 46)
HSLhsl(302, 36%, 14%)
HSVhsv(302, 53%, 18%)
CMYKcmyk(0%, 53.2%, 2.1%, 81.6%)
CIE-LABlab(11.79, 17.13, -10.74)
CIE-LCHlch(11.79, 20.22, 327.92°)
OKLaboklab(24.66% 0.0479 -0.0293)
OKLCHoklch(24.66% 0.056 328.6)
XYZxyz(1.9523, 1.3755, 2.7469)
Luminance0.0138 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F162E #162F17
analogous
#23162F #2F162E #2F1621
triadic
#2F162E #2E2F16 #162E2F
tetradic
#2F162E #2F2316 #162F17 #16212F
square
#2F162E #2F2316 #162F17 #16212F
split-complementary
#2F162E #212F16 #162F23
monochromatic
#150A14 #150A14 #2F162E #592A57 #823D80

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F162E#FFFFFF#000000##FFFFFF
##2F162E1.0016.471.2716.47
#FFFFFF16.471.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#141D2F
Deuteranopia (green-blind)
#1B202D
Tritanopia (blue-blind)
#31181F
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f162e;
/* rgb */ color: rgb(47, 22, 46);
/* oklch */ color: oklch(24.7% 0.056 328.6);
Tailwind
colors: {
  custom: {
    50: '#685466',
    500: '#2f162e',
    950: '#000000',
  },
}
SCSS
$custom: #2f162e;
$custom-light: #685466;
$custom-dark: #000000;
JSON
{
  "hex": "#2f162e",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 46
  },
  "hsl": {
    "h": 302.4,
    "s": 36.232,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24659,
    "c": 0.05617,
    "h": 328.6
  },
  "luminance": 0.01375
}

Semantic roles & 50–950 ramp

primary
#2F162E
secondary
#3C653E
accent
#CC605C
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060206
muted
#7A787A

Preview Lab

Preview with #2F162E

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

Preview Lab → · Contrast checker → · Palette generator →

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