#2A282E#2A282E

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

Color values

HEX#2A282E
RGBrgb(42, 40, 46)
HSLhsl(260, 7%, 17%)
HSVhsv(260, 13%, 18%)
CMYKcmyk(8.7%, 13%, 0%, 82%)
CIE-LABlab(16.54, 2.39, -3.59)
CIE-LCHlch(16.54, 4.31, 303.65°)
OKLaboklab(28.14% 0.0058 -0.0096)
OKLCHoklch(28.14% 0.011 300.9)
XYZxyz(2.2067, 2.2071, 2.8940)
Luminance0.0221 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A282E #2C2E28
analogous
#28292E #2A282E #2D282E
triadic
#2A282E #2E2A28 #282E2A
tetradic
#2A282E #2E2829 #2C2E28 #282E2D
square
#2A282E #2E2829 #2C2E28 #282E2D
split-complementary
#2A282E #2E2D28 #292E28
monochromatic
#0F0E10 #0F0E10 #2A282E #48444F #66616F

Accessibility & contrast

On white

14.57
#2A282E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A282E
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A282E#FFFFFF#000000##FFFFFF
##2A282E1.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27292E
Deuteranopia (green-blind)
#27292E
Tritanopia (blue-blind)
#29292A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a282e;
/* rgb */ color: rgb(42, 40, 46);
/* oklch */ color: oklch(28.1% 0.011 300.9);
Tailwind
colors: {
  custom: {
    50: '#636166',
    500: '#2a282e',
    950: '#000000',
  },
}
SCSS
$custom: #2a282e;
$custom-light: #636166;
$custom-dark: #000000;
JSON
{
  "hex": "#2a282e",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 46
  },
  "hsl": {
    "h": 260,
    "s": 6.977,
    "l": 16.863
  },
  "oklch": {
    "l": 0.2814,
    "c": 0.01121,
    "h": 300.9
  },
  "luminance": 0.02207
}

Semantic roles & 50–950 ramp

primary
#2A282E
secondary
#5A5D55
accent
#B0789D
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050506
muted
#79797A

Preview Lab

Preview with #2A282E

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

Preview Lab → · Contrast checker → · Palette generator →

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