#2F282F#2F282F

#2F282F is a dark, near-neutral purple. Relative luminance 0.023; OKLCH L 28.7% C 0.016 H 326.0°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#2F282F
RGBrgb(47, 40, 47)
HSLhsl(300, 8%, 17%)
HSVhsv(300, 15%, 18%)
CMYKcmyk(0%, 14.9%, 0%, 81.6%)
CIE-LABlab(17.12, 4.83, -3.37)
CIE-LCHlch(17.12, 5.89, 325.11°)
OKLaboklab(28.74% 0.0133 -0.009)
OKLCHoklch(28.74% 0.016 326)
XYZxyz(2.4441, 2.3272, 3.0092)
Luminance0.0233 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F282F #282F28
analogous
#2C282F #2F282F #2F282C
triadic
#2F282F #2F2F28 #282F2F
tetradic
#2F282F #2F2C28 #282F28 #282C2F
square
#2F282F #2F2C28 #282F28 #282C2F
split-complementary
#2F282F #2C2F28 #282F2C
monochromatic
#110E11 #110E11 #2F282F #504450 #716071

Accessibility & contrast

On white

14.33
#2F282F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2F282F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F282F
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F282F#FFFFFF#000000##FFFFFF
##2F282F1.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#282A2F
Deuteranopia (green-blind)
#292A2F
Tritanopia (blue-blind)
#2F292A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f282f;
/* rgb */ color: rgb(47, 40, 47);
/* oklch */ color: oklch(28.7% 0.016 326.0);
Tailwind
colors: {
  custom: {
    50: '#676167',
    500: '#2f282f',
    950: '#000000',
  },
}
SCSS
$custom: #2f282f;
$custom-light: #676167;
$custom-dark: #000000;
JSON
{
  "hex": "#2f282f",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 47
  },
  "hsl": {
    "h": 300,
    "s": 8.046,
    "l": 17.059
  },
  "oklch": {
    "l": 0.28735,
    "c": 0.01604,
    "h": 326
  },
  "luminance": 0.02327
}

Semantic roles & 50–950 ramp

primary
#2F282F
secondary
#545E54
accent
#B17777
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#060506
muted
#7A797A

Preview Lab

Preview with #2F282F

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

Preview Lab → · Contrast checker → · Palette generator →

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