#282A2A#282A2A

#282A2A is a dark, near-neutral grey. Relative luminance 0.023; OKLCH L 28.3% C 0.003 H 196.9°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#282A2A
RGBrgb(40, 42, 42)
HSLhsl(180, 2%, 16%)
HSVhsv(180, 5%, 16%)
CMYKcmyk(4.8%, 0%, 0%, 83.5%)
CIE-LABlab(16.86, -0.89, -0.31)
CIE-LCHlch(16.86, 0.95, 199.23°)
OKLaboklab(28.3% -0.0028 -0.0008)
OKLCHoklch(28.3% 0.003 196.9)
XYZxyz(2.1209, 2.2742, 2.5173)
Luminance0.0227 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A2A #2A2828
analogous
#282A29 #282A2A #28292A
triadic
#282A2A #2A282A #2A2A28
tetradic
#282A2A #29282A #2A2828 #292A28
square
#282A2A #29282A #2A2828 #292A28
split-complementary
#282A2A #2A2829 #2A2928
monochromatic
#0F1010 #0F1010 #282A2A #464949 #646969

Accessibility & contrast

On white

14.43
#282A2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#282A2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282A2A
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A2A#FFFFFF#000000##FFFFFF
##282A2A1.0014.431.4514.43
#FFFFFF14.431.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A2A2A
Deuteranopia (green-blind)
#29292A
Tritanopia (blue-blind)
#272A2A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #282a2a;
/* rgb */ color: rgb(40, 42, 42);
/* oklch */ color: oklch(28.3% 0.003 196.9);
Tailwind
colors: {
  custom: {
    50: '#616363',
    500: '#282a2a',
    950: '#000000',
  },
}
SCSS
$custom: #282a2a;
$custom-light: #616363;
$custom-dark: #000000;
JSON
{
  "hex": "#282a2a",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 42
  },
  "hsl": {
    "h": 180,
    "s": 2.439,
    "l": 16.078
  },
  "oklch": {
    "l": 0.28298,
    "c": 0.00288,
    "h": 196.9
  },
  "luminance": 0.02274
}

Semantic roles & 50–950 ramp

primary
#282A2A
secondary
#585555
accent
#7C7CAC
background
#F5F5F5
surface
#E9EAEA
border
#C5C6C6
text
#050505
muted
#797979

Preview Lab

Preview with #282A2A

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

Preview Lab → · Contrast checker → · Palette generator →

#282A2A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva