#2A331C#2A331C

#2A331C is a dark, muted yellow-green. Relative luminance 0.029; OKLCH L 30.6% C 0.041 H 126.1°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#2A331C
RGBrgb(42, 51, 28)
HSLhsl(83, 29%, 15%)
HSVhsv(83, 45%, 20%)
CMYKcmyk(17.6%, 0%, 45.1%, 80%)
CIE-LABlab(19.82, -8.76, 13.36)
CIE-LCHlch(19.82, 15.97, 123.25°)
OKLaboklab(30.57% -0.024 0.0329)
OKLCHoklch(30.57% 0.041 126.1)
XYZxyz(2.3483, 2.9437, 1.5429)
Luminance0.0294 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A331C #251C33
analogous
#33301C #2A331C #1E331C
triadic
#2A331C #1C2A33 #331C2A
tetradic
#2A331C #1C3330 #251C33 #331C1E
square
#2A331C #1C3330 #251C33 #331C1E
split-complementary
#2A331C #1C1E33 #301C33
monochromatic
#10140B #10140B #2A331C #4B5B32 #6B8247

Accessibility & contrast

On white

13.22
#2A331C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A331C
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A331C#FFFFFF#000000##FFFFFF
##2A331C1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a331c;
/* rgb */ color: rgb(42, 51, 28);
/* oklch */ color: oklch(30.6% 0.041 126.1);
Tailwind
colors: {
  custom: {
    50: '#646a58',
    500: '#2a331c',
    950: '#000000',
  },
}
SCSS
$custom: #2a331c;
$custom-light: #646a58;
$custom-dark: #000000;
JSON
{
  "hex": "#2a331c",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 28
  },
  "hsl": {
    "h": 83.478,
    "s": 29.114,
    "l": 15.49
  },
  "oklch": {
    "l": 0.30569,
    "c": 0.0407,
    "h": 126.1
  },
  "luminance": 0.02944
}

Semantic roles & 50–950 ramp

primary
#2A331C
secondary
#524467
accent
#62C589
background
#F5F6F5
surface
#EAEBE9
border
#C6C6C5
text
#050603
muted
#797A78

Preview Lab

Preview with #2A331C

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

Preview Lab → · Contrast checker → · Palette generator →

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