#2A331E#2A331E

#2A331E is a dark, muted yellow-green. Relative luminance 0.030; OKLCH L 30.6% C 0.038 H 127.3°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#2A331E
RGBrgb(42, 51, 30)
HSLhsl(86, 26%, 16%)
HSVhsv(86, 41%, 20%)
CMYKcmyk(17.6%, 0%, 41.2%, 80%)
CIE-LABlab(19.86, -8.42, 12.10)
CIE-LCHlch(19.86, 14.74, 124.83°)
OKLaboklab(30.62% -0.0229 0.0301)
OKLCHoklch(30.62% 0.038 127.3)
XYZxyz(2.3730, 2.9536, 1.6731)
Luminance0.0295 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A331E #271E33
analogous
#33311E #2A331E #1F331E
triadic
#2A331E #1E2A33 #331E2A
tetradic
#2A331E #1E3331 #271E33 #331E1F
square
#2A331E #1E3331 #271E33 #331E1F
split-complementary
#2A331E #1E1F33 #311E33
monochromatic
#10130B #10130B #2A331E #4A5A35 #69804B

Accessibility & contrast

On white

13.20
#2A331E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2A331E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A331E
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A331E#FFFFFF#000000##FFFFFF
##2A331E1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35301D
Deuteranopia (green-blind)
#34301F
Tritanopia (blue-blind)
#2B312E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a331e;
/* rgb */ color: rgb(42, 51, 30);
/* oklch */ color: oklch(30.6% 0.038 127.3);
Tailwind
colors: {
  custom: {
    50: '#646a5a',
    500: '#2a331e',
    950: '#000000',
  },
}
SCSS
$custom: #2a331e;
$custom-light: #646a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a331e",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 30
  },
  "hsl": {
    "h": 85.714,
    "s": 25.926,
    "l": 15.882
  },
  "oklch": {
    "l": 0.30615,
    "c": 0.0378,
    "h": 127.3
  },
  "luminance": 0.02954
}

Semantic roles & 50–950 ramp

primary
#2A331E
secondary
#544766
accent
#65C28D
background
#F5F6F5
surface
#EAEBE9
border
#C6C6C5
text
#050603
muted
#797A78

Preview Lab

Preview with #2A331E

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

Preview Lab → · Contrast checker → · Palette generator →

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