#2A2F2B#2A2F2B

#2A2F2B is a dark, near-neutral grey. Relative luminance 0.027; OKLCH L 29.9% C 0.010 H 151.5°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#2A2F2B
RGBrgb(42, 47, 43)
HSLhsl(132, 6%, 17%)
HSVhsv(132, 11%, 18%)
CMYKcmyk(10.6%, 0%, 8.5%, 81.6%)
CIE-LABlab(18.80, -3.16, 1.83)
CIE-LCHlch(18.80, 3.65, 149.97°)
OKLaboklab(29.88% -0.0088 0.0048)
OKLCHoklch(29.88% 0.01 151.5)
XYZxyz(2.4073, 2.6997, 2.6793)
Luminance0.0270 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F2B #2F2A2E
analogous
#2C2F2A #2A2F2B #2A2F2E
triadic
#2A2F2B #2B2A2F #2F2B2A
tetradic
#2A2F2B #2A2C2F #2F2A2E #2F2E2A
square
#2A2F2B #2A2C2F #2F2A2E #2F2E2A
split-complementary
#2A2F2B #2E2A2F #2F2A2C
monochromatic
#0E100F #0E100F #2A2F2B #474F49 #647066

Accessibility & contrast

On white

13.64
#2A2F2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2F2B
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F2B#FFFFFF#000000##FFFFFF
##2A2F2B1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2E2B
Deuteranopia (green-blind)
#2E2D2B
Tritanopia (blue-blind)
#292F2E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a2f2b;
/* rgb */ color: rgb(42, 47, 43);
/* oklch */ color: oklch(29.9% 0.010 151.5);
Tailwind
colors: {
  custom: {
    50: '#636764',
    500: '#2a2f2b',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f2b;
$custom-light: #636764;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f2b",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 43
  },
  "hsl": {
    "h": 132,
    "s": 5.618,
    "l": 17.451
  },
  "oklch": {
    "l": 0.29882,
    "c": 0.00998,
    "h": 151.5
  },
  "luminance": 0.027
}

Semantic roles & 50–950 ramp

primary
#2A2F2B
secondary
#5E575D
accent
#79A4AF
background
#F5F6F5
surface
#EAEBEA
border
#C6C6C6
text
#050605
muted
#797A79

Preview Lab

Preview with #2A2F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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