#2F2F2F#2F2F2F

#2F2F2F is a dark, near-neutral grey. Relative luminance 0.028; OKLCH L 30.5% C 0.000 H 0.0°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#2F2F2F
RGBrgb(47, 47, 47)
HSLhsl(0, 0%, 18%)
HSVhsv(0, 0%, 18%)
CMYKcmyk(0%, 0%, 0%, 81.6%)
CIE-LABlab(19.40, -0.00, 0.00)
CIE-LCHlch(19.40, 0.00, 135.00°)
OKLaboklab(30.52% 0 0)
OKLCHoklch(30.52% 0 0)
XYZxyz(2.7018, 2.8426, 3.0951)
Luminance0.0284 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F2F #2F2F2F
analogous
#2F2F2F #2F2F2F #2F2F2F
triadic
#2F2F2F #2F2F2F #2F2F2F
tetradic
#2F2F2F #2F2F2F #2F2F2F #2F2F2F
square
#2F2F2F #2F2F2F #2F2F2F #2F2F2F
split-complementary
#2F2F2F #2F2F2F #2F2F2F
monochromatic
#0F0F0F #101010 #2F2F2F #4E4E4E #6C6C6C

Accessibility & contrast

On white

13.39
#2F2F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2F2F2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F2F
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F2F#FFFFFF#000000##FFFFFF
##2F2F2F1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2F2F
Deuteranopia (green-blind)
#2F2F2F
Tritanopia (blue-blind)
#2F2F2F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f2f2f;
/* rgb */ color: rgb(47, 47, 47);
/* oklch */ color: oklch(30.5% 0.000 0.0);
Tailwind
colors: {
  custom: {
    50: '#676767',
    500: '#2f2f2f',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f2f;
$custom-light: #676767;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f2f",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 47
  },
  "hsl": {
    "h": 0,
    "s": 0,
    "l": 18.431
  },
  "oklch": {
    "l": 0.30519,
    "c": 0,
    "h": 0
  },
  "luminance": 0.02843
}

Semantic roles & 50–950 ramp

primary
#2F2F2F
secondary
#5D5D5D
accent
#A9A97E
background
#F6F6F6
surface
#EBEBEB
border
#C6C6C6
text
#060606
muted
#7A7A7A

Preview Lab

Preview with #2F2F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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