#2A302F#2A302F

#2A302F is a dark, near-neutral grey. Relative luminance 0.028; OKLCH L 30.3% C 0.009 H 184.7°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#2A302F
RGBrgb(42, 48, 47)
HSLhsl(170, 7%, 18%)
HSVhsv(170, 13%, 19%)
CMYKcmyk(12.5%, 0%, 2.1%, 81.2%)
CIE-LABlab(19.27, -2.85, -0.25)
CIE-LCHlch(19.27, 2.86, 184.95°)
OKLaboklab(30.3% -0.0085 -0.0007)
OKLCHoklch(30.3% 0.009 184.7)
XYZxyz(2.5248, 2.8113, 3.0984)
Luminance0.0281 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A302F #302A2B
analogous
#2A302C #2A302F #2A2E30
triadic
#2A302F #2F2A30 #302F2A
tetradic
#2A302F #2C2A30 #302A2B #2E302A
square
#2A302F #2C2A30 #302A2B #2E302A
split-complementary
#2A302F #302A2E #302C2A
monochromatic
#0E1010 #0E1010 #2A302F #47514F #63716F

Accessibility & contrast

On white

13.44
#2A302F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2A302F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A302F
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A302F#FFFFFF#000000##FFFFFF
##2A302F1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2F2F
Deuteranopia (green-blind)
#2E2E2F
Tritanopia (blue-blind)
#293030
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a302f;
/* rgb */ color: rgb(42, 48, 47);
/* oklch */ color: oklch(30.3% 0.009 184.7);
Tailwind
colors: {
  custom: {
    50: '#636867',
    500: '#2a302f',
    950: '#000000',
  },
}
SCSS
$custom: #2a302f;
$custom-light: #636867;
$custom-dark: #000000;
JSON
{
  "hex": "#2a302f",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 47
  },
  "hsl": {
    "h": 170,
    "s": 6.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.303,
    "c": 0.00854,
    "h": 184.7
  },
  "luminance": 0.02811
}

Semantic roles & 50–950 ramp

primary
#2A302F
secondary
#5F5758
accent
#7881B0
background
#F5F6F6
surface
#EAEBEB
border
#C6C6C6
text
#050606
muted
#797A7A

Preview Lab

Preview with #2A302F

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

Preview Lab → · Contrast checker → · Palette generator →

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