#2A2E2A#2A2E2A

#2A2E2A is a dark, near-neutral grey. Relative luminance 0.026; OKLCH L 29.6% C 0.009 H 145.4°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#2A2E2A
RGBrgb(42, 46, 42)
HSLhsl(120, 5%, 17%)
HSVhsv(120, 9%, 18%)
CMYKcmyk(8.7%, 0%, 8.7%, 82%)
CIE-LABlab(18.42, -2.72, 1.98)
CIE-LCHlch(18.42, 3.36, 144.03°)
OKLaboklab(29.58% -0.0075 0.0052)
OKLCHoklch(29.58% 0.009 145.4)
XYZxyz(2.3497, 2.6134, 2.5707)
Luminance0.0261 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2E2A #2E2A2E
analogous
#2C2E2A #2A2E2A #2A2E2C
triadic
#2A2E2A #2A2A2E #2E2A2A
tetradic
#2A2E2A #2A2C2E #2E2A2E #2E2C2A
square
#2A2E2A #2A2C2E #2E2A2E #2E2C2A
split-complementary
#2A2E2A #2C2A2E #2E2A2C
monochromatic
#0F100F #0F100F #2A2E2A #474E47 #646E64

Accessibility & contrast

On white

13.79
#2A2E2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2A2E2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2E2A
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2E2A#FFFFFF#000000##FFFFFF
##2A2E2A1.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E2D2A
Deuteranopia (green-blind)
#2D2D2A
Tritanopia (blue-blind)
#2A2E2D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a2e2a;
/* rgb */ color: rgb(42, 46, 42);
/* oklch */ color: oklch(29.6% 0.009 145.4);
Tailwind
colors: {
  custom: {
    50: '#636663',
    500: '#2a2e2a',
    950: '#000000',
  },
}
SCSS
$custom: #2a2e2a;
$custom-light: #636663;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2e2a",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 42
  },
  "hsl": {
    "h": 120,
    "s": 4.545,
    "l": 17.255
  },
  "oklch": {
    "l": 0.29575,
    "c": 0.00908,
    "h": 145.4
  },
  "luminance": 0.02613
}

Semantic roles & 50–950 ramp

primary
#2A2E2A
secondary
#5D575D
accent
#7AAEAE
background
#F5F6F5
surface
#EAEBEA
border
#C6C6C6
text
#050605
muted
#797A79

Preview Lab

Preview with #2A2E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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