#2F172E#2F172E

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

Color values

HEX#2F172E
RGBrgb(47, 23, 46)
HSLhsl(303, 34%, 14%)
HSVhsv(303, 51%, 18%)
CMYKcmyk(0%, 51.1%, 2.1%, 81.6%)
CIE-LABlab(12.05, 16.46, -10.34)
CIE-LCHlch(12.05, 19.44, 327.88°)
OKLaboklab(24.85% 0.0461 -0.0282)
OKLCHoklch(24.85% 0.054 328.6)
XYZxyz(1.9718, 1.4145, 2.7534)
Luminance0.0141 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F172E #172F18
analogous
#24172F #2F172E #2F1722
triadic
#2F172E #2E2F17 #172E2F
tetradic
#2F172E #2F2417 #172F18 #17222F
square
#2F172E #2F2417 #172F18 #17222F
split-complementary
#2F172E #222F17 #172F24
monochromatic
#150A14 #150A14 #2F172E #582B56 #813F7E

Accessibility & contrast

On white

16.37
#2F172E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F172E
16.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F172E#FFFFFF#000000##FFFFFF
##2F172E1.0016.371.2816.37
#FFFFFF16.371.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151E2F
Deuteranopia (green-blind)
#1C212D
Tritanopia (blue-blind)
#311920
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f172e;
/* rgb */ color: rgb(47, 23, 46);
/* oklch */ color: oklch(24.9% 0.054 328.6);
Tailwind
colors: {
  custom: {
    50: '#685566',
    500: '#2f172e',
    950: '#000000',
  },
}
SCSS
$custom: #2f172e;
$custom-light: #685566;
$custom-dark: #000000;
JSON
{
  "hex": "#2f172e",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 46
  },
  "hsl": {
    "h": 302.5,
    "s": 34.286,
    "l": 13.725
  },
  "oklch": {
    "l": 0.24853,
    "c": 0.05398,
    "h": 328.6
  },
  "luminance": 0.01414
}

Semantic roles & 50–950 ramp

primary
#2F172E
secondary
#3D643F
accent
#CA625D
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060306
muted
#7A787A

Preview Lab

Preview with #2F172E

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

Preview Lab → · Contrast checker → · Palette generator →

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