#2A2A28#2A2A28

#2A2A28 is a dark, near-neutral grey. Relative luminance 0.023; OKLCH L 28.4% C 0.004 H 106.7°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#2A2A28
RGBrgb(42, 42, 40)
HSLhsl(60, 2%, 16%)
HSVhsv(60, 5%, 16%)
CMYKcmyk(0%, 0%, 4.8%, 83.5%)
CIE-LABlab(17.00, -0.47, 1.31)
CIE-LCHlch(17.00, 1.39, 109.79°)
OKLaboklab(28.43% -0.001 0.0034)
OKLCHoklch(28.43% 0.004 106.7)
XYZxyz(2.1658, 2.3014, 2.3372)
Luminance0.0230 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A28 #28282A
analogous
#2A2928 #2A2A28 #292A28
triadic
#2A2A28 #282A2A #2A282A
tetradic
#2A2A28 #282A29 #28282A #2A2829
square
#2A2A28 #282A29 #28282A #2A2829
split-complementary
#2A2A28 #28292A #29282A
monochromatic
#10100F #10100F #2A2A28 #494946 #696964

Accessibility & contrast

On white

14.38
#2A2A28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2A28
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A28#FFFFFF#000000##FFFFFF
##2A2A281.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2a28;
/* rgb */ color: rgb(42, 42, 40);
/* oklch */ color: oklch(28.4% 0.004 106.7);
Tailwind
colors: {
  custom: {
    50: '#636361',
    500: '#2a2a28',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a28;
$custom-light: #636361;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a28",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 40
  },
  "hsl": {
    "h": 60,
    "s": 2.439,
    "l": 16.078
  },
  "oklch": {
    "l": 0.28427,
    "c": 0.00359,
    "h": 106.7
  },
  "luminance": 0.02301
}

Semantic roles & 50–950 ramp

primary
#2A2A28
secondary
#555558
accent
#7CAC7C
background
#F5F5F5
surface
#EAEAE9
border
#C6C6C5
text
#050505
muted
#797979

Preview Lab

Preview with #2A2A28

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

Preview Lab → · Contrast checker → · Palette generator →

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