#2A331F#2A331F

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

Color values

HEX#2A331F
RGBrgb(42, 51, 31)
HSLhsl(87, 24%, 16%)
HSVhsv(87, 39%, 20%)
CMYKcmyk(17.6%, 0%, 39.2%, 80%)
CIE-LABlab(19.88, -8.24, 11.47)
CIE-LCHlch(19.88, 14.12, 125.71°)
OKLaboklab(30.64% -0.0224 0.0286)
OKLCHoklch(30.64% 0.036 128.1)
XYZxyz(2.3860, 2.9588, 1.7415)
Luminance0.0296 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A331F #281F33
analogous
#33321F #2A331F #20331F
triadic
#2A331F #1F2A33 #331F2A
tetradic
#2A331F #1F3332 #281F33 #331F20
square
#2A331F #1F3332 #281F33 #331F20
split-complementary
#2A331F #1F2033 #321F33
monochromatic
#10130C #10130C #2A331F #495936 #697F4D

Accessibility & contrast

On white

13.19
#2A331F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A331F
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A331F#FFFFFF#000000##FFFFFF
##2A331F1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35301E
Deuteranopia (green-blind)
#343020
Tritanopia (blue-blind)
#2B312E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a331f;
/* rgb */ color: rgb(42, 51, 31);
/* oklch */ color: oklch(30.6% 0.036 128.1);
Tailwind
colors: {
  custom: {
    50: '#636a5a',
    500: '#2a331f',
    950: '#000000',
  },
}
SCSS
$custom: #2a331f;
$custom-light: #636a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a331f",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 31
  },
  "hsl": {
    "h": 87,
    "s": 24.39,
    "l": 16.078
  },
  "oklch": {
    "l": 0.30638,
    "c": 0.03633,
    "h": 128.1
  },
  "luminance": 0.02959
}

Semantic roles & 50–950 ramp

primary
#2A331F
secondary
#554866
accent
#67C18F
background
#F5F6F5
surface
#EAEBE9
border
#C6C6C5
text
#050604
muted
#797A79

Preview Lab

Preview with #2A331F

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

Preview Lab → · Contrast checker → · Palette generator →

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