#2A2A18#2A2A18

#2A2A18 is a dark, muted yellow. Relative luminance 0.022; OKLCH L 28.0% C 0.031 H 108.2°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#2A2A18
RGBrgb(42, 42, 24)
HSLhsl(60, 27%, 13%)
HSVhsv(60, 43%, 16%)
CMYKcmyk(0%, 0%, 42.9%, 83.5%)
CIE-LABlab(16.57, -3.58, 11.79)
CIE-LCHlch(16.57, 12.32, 106.88°)
OKLaboklab(27.96% -0.0096 0.0291)
OKLCHoklch(27.96% 0.031 108.2)
XYZxyz(1.9477, 2.2142, 1.1887)
Luminance0.0221 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A18 #18182A
analogous
#2A2118 #2A2A18 #212A18
triadic
#2A2A18 #182A2A #2A182A
tetradic
#2A2A18 #182A21 #18182A #2A1821
square
#2A2A18 #182A21 #18182A #2A1821
split-complementary
#2A2A18 #18212A #21182A
monochromatic
#13130B #13130B #2A2A18 #51512E #787845

Accessibility & contrast

On white

14.56
#2A2A18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2A2A18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A18
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A18#FFFFFF#000000##FFFFFF
##2A2A181.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2917
Deuteranopia (green-blind)
#2D2919
Tritanopia (blue-blind)
#2C2825
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a2a18;
/* rgb */ color: rgb(42, 42, 24);
/* oklch */ color: oklch(28.0% 0.031 108.2);
Tailwind
colors: {
  custom: {
    50: '#646355',
    500: '#2a2a18',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a18;
$custom-light: #646355;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a18",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 24
  },
  "hsl": {
    "h": 60,
    "s": 27.273,
    "l": 12.941
  },
  "oklch": {
    "l": 0.27955,
    "c": 0.03062,
    "h": 108.2
  },
  "luminance": 0.02214
}

Semantic roles & 50–950 ramp

primary
#2A2A18
secondary
#40405E
accent
#64C464
background
#F5F5F4
surface
#EAEAE7
border
#C6C6C3
text
#050503
muted
#797978

Preview Lab

Preview with #2A2A18

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

Preview Lab → · Contrast checker → · Palette generator →

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