#2A2F2E#2A2F2E

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

Color values

HEX#2A2F2E
RGBrgb(42, 47, 46)
HSLhsl(168, 6%, 17%)
HSVhsv(168, 11%, 18%)
CMYKcmyk(10.6%, 0%, 2.1%, 81.6%)
CIE-LABlab(18.90, -2.43, -0.11)
CIE-LCHlch(18.90, 2.43, 182.48°)
OKLaboklab(29.99% -0.0072 -0.0003)
OKLCHoklch(29.99% 0.007 182.5)
XYZxyz(2.4644, 2.7225, 2.9799)
Luminance0.0272 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F2E #2F2A2B
analogous
#2A2F2C #2A2F2E #2A2E2F
triadic
#2A2F2E #2E2A2F #2F2E2A
tetradic
#2A2F2E #2C2A2F #2F2A2B #2E2F2A
square
#2A2F2E #2C2A2F #2F2A2B #2E2F2A
split-complementary
#2A2F2E #2F2A2E #2F2C2A
monochromatic
#0E1010 #0E1010 #2A2F2E #474F4E #64706D

Accessibility & contrast

On white

13.60
#2A2F2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2F2E
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F2E#FFFFFF#000000##FFFFFF
##2A2F2E1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2f2e;
/* rgb */ color: rgb(42, 47, 46);
/* oklch */ color: oklch(30.0% 0.007 182.5);
Tailwind
colors: {
  custom: {
    50: '#636766',
    500: '#2a2f2e',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f2e;
$custom-light: #636766;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f2e",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 46
  },
  "hsl": {
    "h": 168,
    "s": 5.618,
    "l": 17.451
  },
  "oklch": {
    "l": 0.29992,
    "c": 0.00723,
    "h": 182.5
  },
  "luminance": 0.02723
}

Semantic roles & 50–950 ramp

primary
#2A2F2E
secondary
#5E5758
accent
#7984AF
background
#F5F6F6
surface
#EAEBEB
border
#C6C6C6
text
#050606
muted
#797A7A

Preview Lab

Preview with #2A2F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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