#2A371C#2A371C

#2A371C is a dark, muted yellow-green. Relative luminance 0.033; OKLCH L 31.7% C 0.048 H 129.8°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#2A371C
RGBrgb(42, 55, 28)
HSLhsl(89, 33%, 16%)
HSVhsv(89, 49%, 22%)
CMYKcmyk(23.6%, 0%, 49.1%, 78.4%)
CIE-LABlab(21.24, -11.21, 15.18)
CIE-LCHlch(21.24, 18.87, 126.44°)
OKLaboklab(31.71% -0.0308 0.0371)
OKLCHoklch(31.71% 0.048 129.8)
XYZxyz(2.5306, 3.3084, 1.6036)
Luminance0.0331 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A371C #291C37
analogous
#37371C #2A371C #1D371C
triadic
#2A371C #1C2A37 #371C2A
tetradic
#2A371C #1C3737 #291C37 #371C1D
square
#2A371C #1C3737 #291C37 #371C1D
split-complementary
#2A371C #1C1D37 #371C37
monochromatic
#0F140A #0F140A #2A371C #496031 #688845

Accessibility & contrast

On white

12.64
#2A371C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2A371C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A371C
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A371C#FFFFFF#000000##FFFFFF
##2A371C1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39341A
Deuteranopia (green-blind)
#37331D
Tritanopia (blue-blind)
#2B3530
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a371c;
/* rgb */ color: rgb(42, 55, 28);
/* oklch */ color: oklch(31.7% 0.048 129.8);
Tailwind
colors: {
  custom: {
    50: '#646d58',
    500: '#2a371c',
    950: '#000000',
  },
}
SCSS
$custom: #2a371c;
$custom-light: #646d58;
$custom-dark: #000000;
JSON
{
  "hex": "#2a371c",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 28
  },
  "hsl": {
    "h": 88.889,
    "s": 32.53,
    "l": 16.275
  },
  "oklch": {
    "l": 0.31712,
    "c": 0.04823,
    "h": 129.8
  },
  "luminance": 0.03308
}

Semantic roles & 50–950 ramp

primary
#2A371C
secondary
#57436B
accent
#5FC992
background
#F6F6F5
surface
#EBEBE9
border
#C6C6C5
text
#050703
muted
#7A7A78

Preview Lab

Preview with #2A371C

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

Preview Lab → · Contrast checker → · Palette generator →

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