#2A3822#2A3822

#2A3822 is a dark, muted yellow-green. Relative luminance 0.034; OKLCH L 32.1% C 0.042 H 134.6°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#2A3822
RGBrgb(42, 56, 34)
HSLhsl(98, 24%, 18%)
HSVhsv(98, 39%, 22%)
CMYKcmyk(25%, 0%, 39.3%, 78%)
CIE-LABlab(21.71, -10.79, 11.93)
CIE-LCHlch(21.71, 16.09, 132.12°)
OKLaboklab(32.13% -0.0294 0.0298)
OKLCHoklch(32.13% 0.042 134.6)
XYZxyz(2.6577, 3.4360, 2.0363)
Luminance0.0344 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3822 #302238
analogous
#353822 #2A3822 #223825
triadic
#2A3822 #222A38 #38222A
tetradic
#2A3822 #223538 #302238 #382522
square
#2A3822 #223538 #302238 #382522
split-complementary
#2A3822 #252238 #382235
monochromatic
#0E130C #0E130C #2A3822 #475E39 #638450

Accessibility & contrast

On white

12.45
#2A3822 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2A3822 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3822
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3822#FFFFFF#000000##FFFFFF
##2A38221.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A3521
Deuteranopia (green-blind)
#383423
Tritanopia (blue-blind)
#2A3632
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a3822;
/* rgb */ color: rgb(42, 56, 34);
/* oklch */ color: oklch(32.1% 0.042 134.6);
Tailwind
colors: {
  custom: {
    50: '#646e5d',
    500: '#2a3822',
    950: '#000000',
  },
}
SCSS
$custom: #2a3822;
$custom-light: #646e5d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3822",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 34
  },
  "hsl": {
    "h": 98.182,
    "s": 24.444,
    "l": 17.647
  },
  "oklch": {
    "l": 0.3213,
    "c": 0.04185,
    "h": 134.6
  },
  "luminance": 0.03436
}

Semantic roles & 50–950 ramp

primary
#2A3822
secondary
#5F4B6A
accent
#67C1A0
background
#F5F6F5
surface
#EAECE9
border
#C6C7C5
text
#050704
muted
#797A79

Preview Lab

Preview with #2A3822

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

Preview Lab → · Contrast checker → · Palette generator →

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