#2A310C#2A310C

#2A310C is a dark, muted yellow-green. Relative luminance 0.027; OKLCH L 29.7% C 0.057 H 119.1°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#2A310C
RGBrgb(42, 49, 12)
HSLhsl(71, 61%, 12%)
HSVhsv(71, 76%, 19%)
CMYKcmyk(14.3%, 0%, 75.5%, 80.8%)
CIE-LABlab(18.87, -9.55, 21.65)
CIE-LCHlch(18.87, 23.67, 113.79°)
OKLaboklab(29.73% -0.0279 0.05)
OKLCHoklch(29.73% 0.057 119.1)
XYZxyz(2.1196, 2.7154, 0.7602)
Luminance0.0272 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A310C #130C31
analogous
#31260C #2A310C #18310C
triadic
#2A310C #0C2A31 #310C2A
tetradic
#2A310C #0C3126 #130C31 #310C18
square
#2A310C #0C3126 #130C31 #310C18
split-complementary
#2A310C #0C1831 #260C31
monochromatic
#151906 #151906 #2A310C #546218 #7E9324

Accessibility & contrast

On white

13.61
#2A310C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2A310C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A310C
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A310C#FFFFFF#000000##FFFFFF
##2A310C1.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#352E08
Deuteranopia (green-blind)
#342E0F
Tritanopia (blue-blind)
#2D2E29
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a310c;
/* rgb */ color: rgb(42, 49, 12);
/* oklch */ color: oklch(29.7% 0.057 119.1);
Tailwind
colors: {
  custom: {
    50: '#65694d',
    500: '#2a310c',
    950: '#000000',
  },
}
SCSS
$custom: #2a310c;
$custom-light: #65694d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a310c",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 12
  },
  "hsl": {
    "h": 71.351,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.29729,
    "c": 0.05724,
    "h": 119.1
  },
  "luminance": 0.02715
}

Semantic roles & 50–950 ramp

primary
#2A310C
secondary
#382C6D
accent
#44E462
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060601
muted
#7A7A77

Preview Lab

Preview with #2A310C

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

Preview Lab → · Contrast checker → · Palette generator →

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