#2A2A2F#2A2A2F

#2A2A2F is a dark, near-neutral grey. Relative luminance 0.024; OKLCH L 28.7% C 0.009 H 285.8°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#2A2A2F
RGBrgb(42, 42, 47)
HSLhsl(240, 6%, 17%)
HSVhsv(240, 11%, 18%)
CMYKcmyk(10.6%, 10.6%, 0%, 81.6%)
CIE-LABlab(17.24, 1.25, -3.24)
CIE-LCHlch(17.24, 3.47, 291.07°)
OKLaboklab(28.7% 0.0025 -0.0087)
OKLCHoklch(28.7% 0.009 285.8)
XYZxyz(2.2958, 2.3534, 3.0221)
Luminance0.0235 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A2F #2F2F2A
analogous
#2A2D2F #2A2A2F #2D2A2F
triadic
#2A2A2F #2F2A2A #2A2F2A
tetradic
#2A2A2F #2F2A2D #2F2F2A #2A2F2D
square
#2A2A2F #2F2A2D #2F2F2A #2A2F2D
split-complementary
#2A2A2F #2F2D2A #2D2F2A
monochromatic
#0E0E10 #0E0E10 #2A2A2F #47474F #646470

Accessibility & contrast

On white

14.28
#2A2A2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2A2A2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A2F
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A2F#FFFFFF#000000##FFFFFF
##2A2A2F1.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#292B2F
Deuteranopia (green-blind)
#292A2F
Tritanopia (blue-blind)
#292B2C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a2a2f;
/* rgb */ color: rgb(42, 42, 47);
/* oklch */ color: oklch(28.7% 0.009 285.8);
Tailwind
colors: {
  custom: {
    50: '#636367',
    500: '#2a2a2f',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a2f;
$custom-light: #636367;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a2f",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 47
  },
  "hsl": {
    "h": 240,
    "s": 5.618,
    "l": 17.451
  },
  "oklch": {
    "l": 0.28703,
    "c": 0.00904,
    "h": 285.8
  },
  "luminance": 0.02353
}

Semantic roles & 50–950 ramp

primary
#2A2A2F
secondary
#5E5E57
accent
#AF79AF
background
#F5F5F6
surface
#EAEAEB
border
#C6C6C6
text
#050506
muted
#79797A

Preview Lab

Preview with #2A2A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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