#2A2A22#2A2A22

#2A2A22 is a dark, near-neutral yellow. Relative luminance 0.023; OKLCH L 28.2% C 0.014 H 107.3°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#2A2A22
RGBrgb(42, 42, 34)
HSLhsl(60, 11%, 15%)
HSVhsv(60, 19%, 16%)
CMYKcmyk(0%, 0%, 19%, 83.5%)
CIE-LABlab(16.81, -1.78, 5.24)
CIE-LCHlch(16.81, 5.54, 108.72°)
OKLaboklab(28.23% -0.0042 0.0135)
OKLCHoklch(28.23% 0.014 107.3)
XYZxyz(2.0715, 2.2637, 1.8409)
Luminance0.0226 (WCAG relative)
Temperatureneutral
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A22 #22222A
analogous
#2A2622 #2A2A22 #262A22
triadic
#2A2A22 #222A2A #2A222A
tetradic
#2A2A22 #222A26 #22222A #2A2226
square
#2A2A22 #222A26 #22222A #2A2226
split-complementary
#2A2A22 #22262A #26222A
monochromatic
#11110E #11110E #2A2A22 #4C4C3D #6E6E59

Accessibility & contrast

On white

14.45
#2A2A22 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2A2A22 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A22
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A22#FFFFFF#000000##FFFFFF
##2A2A221.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B2922
Deuteranopia (green-blind)
#2C2A22
Tritanopia (blue-blind)
#2B2928
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a2a22;
/* rgb */ color: rgb(42, 42, 34);
/* oklch */ color: oklch(28.2% 0.014 107.3);
Tailwind
colors: {
  custom: {
    50: '#63635d',
    500: '#2a2a22',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a22;
$custom-light: #63635d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a22",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 34
  },
  "hsl": {
    "h": 60,
    "s": 10.526,
    "l": 14.902
  },
  "oklch": {
    "l": 0.28225,
    "c": 0.01416,
    "h": 107.3
  },
  "luminance": 0.02264
}

Semantic roles & 50–950 ramp

primary
#2A2A22
secondary
#4E4E5A
accent
#74B374
background
#F5F5F5
surface
#EAEAE9
border
#C6C6C5
text
#050504
muted
#797979

Preview Lab

Preview with #2A2A22

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

Preview Lab → · Contrast checker → · Palette generator →

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