#2A2F2F#2A2F2F

#2A2F2F is a dark, near-neutral grey. Relative luminance 0.027; OKLCH L 30.0% C 0.007 H 196.8°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#2A2F2F
RGBrgb(42, 47, 47)
HSLhsl(180, 6%, 17%)
HSVhsv(180, 11%, 18%)
CMYKcmyk(10.6%, 0%, 0%, 81.6%)
CIE-LABlab(18.93, -2.18, -0.75)
CIE-LCHlch(18.93, 2.30, 198.91°)
OKLaboklab(30.03% -0.0067 -0.002)
OKLCHoklch(30.03% 0.007 196.8)
XYZxyz(2.4843, 2.7305, 3.0849)
Luminance0.0273 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F2F #2F2A2A
analogous
#2A2F2D #2A2F2F #2A2D2F
triadic
#2A2F2F #2F2A2F #2F2F2A
tetradic
#2A2F2F #2D2A2F #2F2A2A #2D2F2A
square
#2A2F2F #2D2A2F #2F2A2A #2D2F2A
split-complementary
#2A2F2F #2F2A2D #2F2D2A
monochromatic
#0E1010 #0E1010 #2A2F2F #474F4F #647070

Accessibility & contrast

On white

13.58
#2A2F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2A2F2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F2F
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F2F#FFFFFF#000000##FFFFFF
##2A2F2F1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E2E2F
Deuteranopia (green-blind)
#2D2E2F
Tritanopia (blue-blind)
#292F2F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a2f2f;
/* rgb */ color: rgb(42, 47, 47);
/* oklch */ color: oklch(30.0% 0.007 196.8);
Tailwind
colors: {
  custom: {
    50: '#636767',
    500: '#2a2f2f',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f2f;
$custom-light: #636767;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f2f",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 47
  },
  "hsl": {
    "h": 180,
    "s": 5.618,
    "l": 17.451
  },
  "oklch": {
    "l": 0.3003,
    "c": 0.00701,
    "h": 196.8
  },
  "luminance": 0.02731
}

Semantic roles & 50–950 ramp

primary
#2A2F2F
secondary
#5E5757
accent
#7979AF
background
#F5F6F6
surface
#EAEBEB
border
#C6C6C6
text
#050606
muted
#797A7A

Preview Lab

Preview with #2A2F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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