#2A2F12#2A2F12

#2A2F12 is a dark, muted yellow-green. Relative luminance 0.026; OKLCH L 29.2% C 0.047 H 117.5°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#2A2F12
RGBrgb(42, 47, 18)
HSLhsl(70, 45%, 13%)
HSVhsv(70, 62%, 18%)
CMYKcmyk(10.6%, 0%, 61.7%, 81.6%)
CIE-LABlab(18.23, -7.67, 17.72)
CIE-LCHlch(18.23, 19.31, 113.39°)
OKLaboklab(29.24% -0.0218 0.0419)
OKLCHoklch(29.24% 0.047 117.5)
XYZxyz(2.0806, 2.5690, 0.9584)
Luminance0.0257 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F12 #17122F
analogous
#2F2512 #2A2F12 #1B2F12
triadic
#2A2F12 #122A2F #2F122A
tetradic
#2A2F12 #122F25 #17122F #2F121B
square
#2A2F12 #122F25 #17122F #2F121B
split-complementary
#2A2F12 #121B2F #25122F
monochromatic
#141608 #141608 #2A2F12 #525B23 #798834

Accessibility & contrast

On white

13.87
#2A2F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2A2F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F12
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F12#FFFFFF#000000##FFFFFF
##2A2F121.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322C0F
Deuteranopia (green-blind)
#322D14
Tritanopia (blue-blind)
#2D2C28
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a2f12;
/* rgb */ color: rgb(42, 47, 18);
/* oklch */ color: oklch(29.2% 0.047 117.5);
Tailwind
colors: {
  custom: {
    50: '#646750',
    500: '#2a2f12',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f12;
$custom-light: #646750;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f12",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 18
  },
  "hsl": {
    "h": 70.345,
    "s": 44.615,
    "l": 12.745
  },
  "oklch": {
    "l": 0.2924,
    "c": 0.04725,
    "h": 117.5
  },
  "luminance": 0.02569
}

Semantic roles & 50–950 ramp

primary
#2A2F12
secondary
#3E3667
accent
#53D46A
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#050602
muted
#7A7A78

Preview Lab

Preview with #2A2F12

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

Preview Lab → · Contrast checker → · Palette generator →

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