#2A282B#2A282B

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

Color values

HEX#2A282B
RGBrgb(42, 40, 43)
HSLhsl(280, 4%, 16%)
HSVhsv(280, 7%, 17%)
CMYKcmyk(2.3%, 7%, 0%, 83.1%)
CIE-LABlab(16.43, 1.63, -1.64)
CIE-LCHlch(16.43, 2.31, 314.90°)
OKLaboklab(28.02% 0.0043 -0.0043)
OKLCHoklch(28.02% 0.006 314.7)
XYZxyz(2.1496, 2.1842, 2.5934)
Luminance0.0218 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A282B #292B28
analogous
#29282B #2A282B #2B282B
triadic
#2A282B #2B2A28 #282B2A
tetradic
#2A282B #2B2928 #292B28 #282B2B
square
#2A282B #2B2928 #292B28 #282B2B
split-complementary
#2A282B #2B2B28 #282B29
monochromatic
#0F0F10 #0F0F10 #2A282B #49454B #68636A

Accessibility & contrast

On white

14.62
#2A282B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A282B
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A282B#FFFFFF#000000##FFFFFF
##2A282B1.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a282b;
/* rgb */ color: rgb(42, 40, 43);
/* oklch */ color: oklch(28.0% 0.006 314.7);
Tailwind
colors: {
  custom: {
    50: '#636164',
    500: '#2a282b',
    950: '#000000',
  },
}
SCSS
$custom: #2a282b;
$custom-light: #636164;
$custom-dark: #000000;
JSON
{
  "hex": "#2a282b",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 43
  },
  "hsl": {
    "h": 280,
    "s": 3.614,
    "l": 16.275
  },
  "oklch": {
    "l": 0.28015,
    "c": 0.00612,
    "h": 314.7
  },
  "luminance": 0.02184
}

Semantic roles & 50–950 ramp

primary
#2A282B
secondary
#575A55
accent
#AD7B8C
background
#F5F5F5
surface
#EAE9EA
border
#C6C5C6
text
#050505
muted
#797979

Preview Lab

Preview with #2A282B

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

Preview Lab → · Contrast checker → · Palette generator →

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