#282828#282828

#282828 is a dark, near-neutral grey. Relative luminance 0.021; OKLCH L 27.7% C 0.000 H 0.0°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#282828
RGBrgb(40, 40, 40)
HSLhsl(0, 0%, 16%)
HSVhsv(0, 0%, 16%)
CMYKcmyk(0%, 0%, 0%, 84.3%)
CIE-LABlab(16.11, -0.00, -0.00)
CIE-LCHlch(16.11, 0.00, 225.00°)
OKLaboklab(27.69% 0 0)
OKLCHoklch(27.69% 0 0)
XYZxyz(2.0168, 2.1219, 2.3104)
Luminance0.0212 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282828 #282828
analogous
#282828 #282828 #282828
triadic
#282828 #282828 #282828
tetradic
#282828 #282828 #282828 #282828
square
#282828 #282828 #282828 #282828
split-complementary
#282828 #282828 #282828
monochromatic
#0F0F0F #0F0F0F #282828 #474747 #656565

Accessibility & contrast

On white

14.74
#282828 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#282828 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282828
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282828#FFFFFF#000000##FFFFFF
##2828281.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #282828;
/* rgb */ color: rgb(40, 40, 40);
/* oklch */ color: oklch(27.7% 0.000 0.0);
Tailwind
colors: {
  custom: {
    50: '#616161',
    500: '#282828',
    950: '#000000',
  },
}
SCSS
$custom: #282828;
$custom-light: #616161;
$custom-dark: #000000;
JSON
{
  "hex": "#282828",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 40
  },
  "hsl": {
    "h": 0,
    "s": 0,
    "l": 15.686
  },
  "oklch": {
    "l": 0.27685,
    "c": 0,
    "h": 0
  },
  "luminance": 0.02122
}

Semantic roles & 50–950 ramp

primary
#282828
secondary
#565656
accent
#A9A97E
background
#F5F5F5
surface
#E9E9E9
border
#C5C5C5
text
#050505
muted
#797979

Preview Lab

Preview with #282828

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

Preview Lab → · Contrast checker → · Palette generator →

#282828 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva