#2A282A#2A282A

#2A282A is a dark, near-neutral grey. Relative luminance 0.022; OKLCH L 28.0% C 0.005 H 325.7°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#2A282A
RGBrgb(42, 40, 42)
HSLhsl(300, 2%, 16%)
HSVhsv(300, 5%, 16%)
CMYKcmyk(0%, 4.8%, 0%, 83.5%)
CIE-LABlab(16.39, 1.39, -0.98)
CIE-LCHlch(16.39, 1.70, 324.64°)
OKLaboklab(27.98% 0.0038 -0.0026)
OKLCHoklch(27.98% 0.005 325.7)
XYZxyz(2.1315, 2.1770, 2.4980)
Luminance0.0218 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A282A #282A28
analogous
#29282A #2A282A #2A2829
triadic
#2A282A #2A2A28 #282A2A
tetradic
#2A282A #2A2928 #282A28 #28292A
square
#2A282A #2A2928 #282A28 #28292A
split-complementary
#2A282A #292A28 #282A29
monochromatic
#100F10 #100F10 #2A282A #494649 #696469

Accessibility & contrast

On white

14.63
#2A282A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2A282A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A282A
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A282A#FFFFFF#000000##FFFFFF
##2A282A1.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28282A
Deuteranopia (green-blind)
#28292A
Tritanopia (blue-blind)
#2A2829
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a282a;
/* rgb */ color: rgb(42, 40, 42);
/* oklch */ color: oklch(28.0% 0.005 325.7);
Tailwind
colors: {
  custom: {
    50: '#636163',
    500: '#2a282a',
    950: '#000000',
  },
}
SCSS
$custom: #2a282a;
$custom-light: #636163;
$custom-dark: #000000;
JSON
{
  "hex": "#2a282a",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 42
  },
  "hsl": {
    "h": 300,
    "s": 2.439,
    "l": 16.078
  },
  "oklch": {
    "l": 0.27975,
    "c": 0.00461,
    "h": 325.7
  },
  "luminance": 0.02177
}

Semantic roles & 50–950 ramp

primary
#2A282A
secondary
#555855
accent
#AC7C7C
background
#F5F5F5
surface
#EAE9EA
border
#C6C5C6
text
#050505
muted
#797979

Preview Lab

Preview with #2A282A

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

Preview Lab → · Contrast checker → · Palette generator →

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