#2A310F#2A310F

#2A310F is a dark, muted yellow-green. Relative luminance 0.027; OKLCH L 29.8% C 0.054 H 119.6°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#2A310F
RGBrgb(42, 49, 15)
HSLhsl(72, 53%, 13%)
HSVhsv(72, 69%, 19%)
CMYKcmyk(14.3%, 0%, 69.4%, 80.8%)
CIE-LABlab(18.90, -9.26, 20.22)
CIE-LCHlch(18.90, 22.24, 114.60°)
OKLaboklab(29.77% -0.0267 0.047)
OKLCHoklch(29.77% 0.054 119.6)
XYZxyz(2.1394, 2.7234, 0.8648)
Luminance0.0272 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A310F #160F31
analogous
#31270F #2A310F #19310F
triadic
#2A310F #0F2A31 #310F2A
tetradic
#2A310F #0F3127 #160F31 #310F19
square
#2A310F #0F3127 #160F31 #310F19
split-complementary
#2A310F #0F1931 #270F31
monochromatic
#141707 #141707 #2A310F #52601D #7A8F2C

Accessibility & contrast

On white

13.60
#2A310F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A310F
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A310F#FFFFFF#000000##FFFFFF
##2A310F1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342E0B
Deuteranopia (green-blind)
#342E11
Tritanopia (blue-blind)
#2D2E2A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a310f;
/* rgb */ color: rgb(42, 49, 15);
/* oklch */ color: oklch(29.8% 0.054 119.6);
Tailwind
colors: {
  custom: {
    50: '#64694f',
    500: '#2a310f',
    950: '#000000',
  },
}
SCSS
$custom: #2a310f;
$custom-light: #64694f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a310f",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 15
  },
  "hsl": {
    "h": 72.353,
    "s": 53.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.29767,
    "c": 0.05407,
    "h": 119.6
  },
  "luminance": 0.02723
}

Semantic roles & 50–950 ramp

primary
#2A310F
secondary
#3D316B
accent
#4BDD69
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#050602
muted
#7A7A78

Preview Lab

Preview with #2A310F

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

Preview Lab → · Contrast checker → · Palette generator →

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