#2A282C#2A282C

#2A282C is a dark, near-neutral grey. Relative luminance 0.022; OKLCH L 28.1% C 0.008 H 308.1°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#2A282C
RGBrgb(42, 40, 44)
HSLhsl(270, 5%, 16%)
HSVhsv(270, 9%, 17%)
CMYKcmyk(4.5%, 9.1%, 0%, 82.7%)
CIE-LABlab(16.46, 1.88, -2.29)
CIE-LCHlch(16.46, 2.96, 309.39°)
OKLaboklab(28.06% 0.0048 -0.0061)
OKLCHoklch(28.06% 0.008 308.1)
XYZxyz(2.1682, 2.1917, 2.6912)
Luminance0.0219 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A282C #2A2C28
analogous
#28282C #2A282C #2C282C
triadic
#2A282C #2C2A28 #282C2A
tetradic
#2A282C #2C2828 #2A2C28 #282C2C
square
#2A282C #2C2828 #2A2C28 #282C2C
split-complementary
#2A282C #2C2C28 #282C28
monochromatic
#0F0F10 #0F0F10 #2A282C #49454C #67626C

Accessibility & contrast

On white

14.60
#2A282C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A282C
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A282C#FFFFFF#000000##FFFFFF
##2A282C1.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a282c;
/* rgb */ color: rgb(42, 40, 44);
/* oklch */ color: oklch(28.1% 0.008 308.1);
Tailwind
colors: {
  custom: {
    50: '#636165',
    500: '#2a282c',
    950: '#000000',
  },
}
SCSS
$custom: #2a282c;
$custom-light: #636165;
$custom-dark: #000000;
JSON
{
  "hex": "#2a282c",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 44
  },
  "hsl": {
    "h": 270,
    "s": 4.762,
    "l": 16.471
  },
  "oklch": {
    "l": 0.28055,
    "c": 0.00776,
    "h": 308.1
  },
  "luminance": 0.02192
}

Semantic roles & 50–950 ramp

primary
#2A282C
secondary
#585B55
accent
#AE7A94
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050505
muted
#79797A

Preview Lab

Preview with #2A282C

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

Preview Lab → · Contrast checker → · Palette generator →

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