#2A2F2A#2A2F2A

#2A2F2A is a dark, near-neutral grey. Relative luminance 0.027; OKLCH L 29.8% C 0.011 H 145.3°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#2A2F2A
RGBrgb(42, 47, 42)
HSLhsl(120, 6%, 17%)
HSVhsv(120, 11%, 18%)
CMYKcmyk(10.6%, 0%, 10.6%, 81.6%)
CIE-LABlab(18.77, -3.39, 2.47)
CIE-LCHlch(18.77, 4.20, 143.94°)
OKLaboklab(29.85% -0.0093 0.0064)
OKLCHoklch(29.85% 0.011 145.3)
XYZxyz(2.3892, 2.6924, 2.5839)
Luminance0.0269 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F2A #2F2A2F
analogous
#2D2F2A #2A2F2A #2A2F2D
triadic
#2A2F2A #2A2A2F #2F2A2A
tetradic
#2A2F2A #2A2D2F #2F2A2F #2F2D2A
square
#2A2F2A #2A2D2F #2F2A2F #2F2D2A
split-complementary
#2A2F2A #2D2A2F #2F2A2D
monochromatic
#0E100E #0E100E #2A2F2A #474F47 #647064

Accessibility & contrast

On white

13.65
#2A2F2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2A2F2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F2A
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F2A#FFFFFF#000000##FFFFFF
##2A2F2A1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2E2A
Deuteranopia (green-blind)
#2E2D2A
Tritanopia (blue-blind)
#2A2F2E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a2f2a;
/* rgb */ color: rgb(42, 47, 42);
/* oklch */ color: oklch(29.8% 0.011 145.3);
Tailwind
colors: {
  custom: {
    50: '#636763',
    500: '#2a2f2a',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f2a;
$custom-light: #636763;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f2a",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 42
  },
  "hsl": {
    "h": 120,
    "s": 5.618,
    "l": 17.451
  },
  "oklch": {
    "l": 0.29847,
    "c": 0.01131,
    "h": 145.3
  },
  "luminance": 0.02692
}

Semantic roles & 50–950 ramp

primary
#2A2F2A
secondary
#5E575E
accent
#79AFAF
background
#F5F6F5
surface
#EAEBEA
border
#C6C6C6
text
#050605
muted
#797A79

Preview Lab

Preview with #2A2F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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