#2F2A2A#2F2A2A

#2F2A2A is a dark, near-neutral grey. Relative luminance 0.024; OKLCH L 29.0% C 0.007 H 17.6°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#2F2A2A
RGBrgb(47, 42, 42)
HSLhsl(0, 6%, 17%)
HSVhsv(0, 11%, 18%)
CMYKcmyk(0%, 10.6%, 10.6%, 81.6%)
CIE-LABlab(17.59, 2.28, 0.83)
CIE-LCHlch(17.59, 2.43, 19.97°)
OKLaboklab(29.04% 0.007 0.0022)
OKLCHoklch(29.04% 0.007 17.6)
XYZxyz(2.4181, 2.4275, 2.5312)
Luminance0.0243 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A2A #2A2F2F
analogous
#2F2A2D #2F2A2A #2F2D2A
triadic
#2F2A2A #2A2F2A #2A2A2F
tetradic
#2F2A2A #2D2F2A #2A2F2F #2D2A2F
square
#2F2A2A #2D2F2A #2A2F2F #2D2A2F
split-complementary
#2F2A2A #2A2F2D #2A2D2F
monochromatic
#100E0E #100E0E #2F2A2A #4F4747 #706464

Accessibility & contrast

On white

14.14
#2F2A2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2F2A2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2A2A
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A2A#FFFFFF#000000##FFFFFF
##2F2A2A1.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B2B2A
Deuteranopia (green-blind)
#2C2B2A
Tritanopia (blue-blind)
#302A2A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f2a2a;
/* rgb */ color: rgb(47, 42, 42);
/* oklch */ color: oklch(29.0% 0.007 17.6);
Tailwind
colors: {
  custom: {
    50: '#676363',
    500: '#2f2a2a',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a2a;
$custom-light: #676363;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a2a",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 42
  },
  "hsl": {
    "h": 0,
    "s": 5.618,
    "l": 17.451
  },
  "oklch": {
    "l": 0.29041,
    "c": 0.00735,
    "h": 17.6
  },
  "luminance": 0.02427
}

Semantic roles & 50–950 ramp

primary
#2F2A2A
secondary
#575E5E
accent
#AFAF79
background
#F6F5F5
surface
#EBEAEA
border
#C6C6C6
text
#060505
muted
#7A7979

Preview Lab

Preview with #2F2A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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