#2A2A2A#2A2A2A

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

Color values

HEX#2A2A2A
RGBrgb(42, 42, 42)
HSLhsl(0, 0%, 16%)
HSVhsv(0, 0%, 16%)
CMYKcmyk(0%, 0%, 0%, 83.5%)
CIE-LABlab(17.06, 0.00, -0.00)
CIE-LCHlch(17.06, 0.00, 353.29°)
OKLaboklab(28.5% 0 0)
OKLCHoklch(28.5% 0 0)
XYZxyz(2.2007, 2.3153, 2.5210)
Luminance0.0232 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A2A #2A2A2A
analogous
#2A2A2A #2A2A2A #2A2A2A
triadic
#2A2A2A #2A2A2A #2A2A2A
tetradic
#2A2A2A #2A2A2A #2A2A2A #2A2A2A
square
#2A2A2A #2A2A2A #2A2A2A #2A2A2A
split-complementary
#2A2A2A #2A2A2A #2A2A2A
monochromatic
#0F0F0F #0F0F0F #2A2A2A #494949 #676767

Accessibility & contrast

On white

14.35
#2A2A2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2A2A2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A2A
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A2A#FFFFFF#000000##FFFFFF
##2A2A2A1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2a2a;
/* rgb */ color: rgb(42, 42, 42);
/* oklch */ color: oklch(28.5% 0.000 0.0);
Tailwind
colors: {
  custom: {
    50: '#636363',
    500: '#2a2a2a',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a2a;
$custom-light: #636363;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a2a",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 42
  },
  "hsl": {
    "h": 0,
    "s": 0,
    "l": 16.471
  },
  "oklch": {
    "l": 0.28502,
    "c": 0,
    "h": 0
  },
  "luminance": 0.02315
}

Semantic roles & 50–950 ramp

primary
#2A2A2A
secondary
#585858
accent
#A9A97E
background
#F5F5F5
surface
#EAEAEA
border
#C6C6C6
text
#050505
muted
#797979

Preview Lab

Preview with #2A2A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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