#2E2828#2E2828

#2E2828 is a dark, near-neutral grey. Relative luminance 0.023; OKLCH L 28.3% C 0.009 H 17.7°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#2E2828
RGBrgb(46, 40, 40)
HSLhsl(0, 7%, 17%)
HSVhsv(0, 13%, 18%)
CMYKcmyk(0%, 13%, 13%, 82%)
CIE-LABlab(16.76, 2.77, 1.01)
CIE-LCHlch(16.76, 2.95, 20.10°)
OKLaboklab(28.34% 0.0085 0.0027)
OKLCHoklch(28.34% 0.009 17.7)
XYZxyz(2.2685, 2.2517, 2.3222)
Luminance0.0225 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2828 #282E2E
analogous
#2E282B #2E2828 #2E2B28
triadic
#2E2828 #282E28 #28282E
tetradic
#2E2828 #2B2E28 #282E2E #2B282E
square
#2E2828 #2B2E28 #282E2E #2B282E
split-complementary
#2E2828 #282E2B #282B2E
monochromatic
#100E0E #100E0E #2E2828 #4F4444 #6F6161

Accessibility & contrast

On white

14.48
#2E2828 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2E2828 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2828
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2828#FFFFFF#000000##FFFFFF
##2E28281.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#292928
Deuteranopia (green-blind)
#2A2A28
Tritanopia (blue-blind)
#2F2728
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e2828;
/* rgb */ color: rgb(46, 40, 40);
/* oklch */ color: oklch(28.3% 0.009 17.7);
Tailwind
colors: {
  custom: {
    50: '#666161',
    500: '#2e2828',
    950: '#000000',
  },
}
SCSS
$custom: #2e2828;
$custom-light: #666161;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2828",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 40
  },
  "hsl": {
    "h": 0,
    "s": 6.977,
    "l": 16.863
  },
  "oklch": {
    "l": 0.28343,
    "c": 0.00891,
    "h": 17.7
  },
  "luminance": 0.02252
}

Semantic roles & 50–950 ramp

primary
#2E2828
secondary
#555D5D
accent
#B0B078
background
#F6F5F5
surface
#EBE9E9
border
#C6C5C5
text
#060505
muted
#7A7979

Preview Lab

Preview with #2E2828

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

Preview Lab → · Contrast checker → · Palette generator →

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