#2A2828#2A2828

#2A2828 is a dark, near-neutral grey. Relative luminance 0.022; OKLCH L 27.9% C 0.003 H 17.4°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#2A2828
RGBrgb(42, 40, 40)
HSLhsl(0, 2%, 16%)
HSVhsv(0, 5%, 16%)
CMYKcmyk(0%, 4.8%, 4.8%, 83.5%)
CIE-LABlab(16.32, 0.91, 0.33)
CIE-LCHlch(16.32, 0.97, 19.61°)
OKLaboklab(27.9% 0.0028 0.0009)
OKLCHoklch(27.9% 0.003 17.4)
XYZxyz(2.0966, 2.1630, 2.3141)
Luminance0.0216 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2828 #282A2A
analogous
#2A2829 #2A2828 #2A2928
triadic
#2A2828 #282A28 #28282A
tetradic
#2A2828 #292A28 #282A2A #29282A
square
#2A2828 #292A28 #282A2A #29282A
split-complementary
#2A2828 #282A29 #28292A
monochromatic
#100F0F #100F0F #2A2828 #494646 #696464

Accessibility & contrast

On white

14.66
#2A2828 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2A2828 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2828
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2828#FFFFFF#000000##FFFFFF
##2A28281.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#282828
Deuteranopia (green-blind)
#292928
Tritanopia (blue-blind)
#2A2828
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a2828;
/* rgb */ color: rgb(42, 40, 40);
/* oklch */ color: oklch(27.9% 0.003 17.4);
Tailwind
colors: {
  custom: {
    50: '#636161',
    500: '#2a2828',
    950: '#000000',
  },
}
SCSS
$custom: #2a2828;
$custom-light: #636161;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2828",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 40
  },
  "hsl": {
    "h": 0,
    "s": 2.439,
    "l": 16.078
  },
  "oklch": {
    "l": 0.27897,
    "c": 0.00294,
    "h": 17.4
  },
  "luminance": 0.02163
}

Semantic roles & 50–950 ramp

primary
#2A2828
secondary
#555858
accent
#ACAC7C
background
#F5F5F5
surface
#EAE9E9
border
#C6C5C5
text
#050505
muted
#797979

Preview Lab

Preview with #2A2828

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

Preview Lab → · Contrast checker → · Palette generator →

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