#2A511F#2A511F

#2A511F is a dark, moderate green. Relative luminance 0.065; OKLCH L 39.3% C 0.090 H 139.2°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#2A511F
RGBrgb(42, 81, 31)
HSLhsl(107, 45%, 22%)
HSVhsv(107, 62%, 32%)
CMYKcmyk(48.1%, 0%, 61.7%, 68.2%)
CIE-LABlab(30.58, -24.80, 24.81)
CIE-LCHlch(30.58, 35.08, 134.99°)
OKLaboklab(39.32% -0.068 0.0587)
OKLCHoklch(39.32% 0.09 139.2)
XYZxyz(4.1444, 6.4758, 2.3276)
Luminance0.0648 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A511F #461F51
analogous
#43511F #2A511F #1F512D
triadic
#2A511F #1F2A51 #511F2A
tetradic
#2A511F #1F4351 #461F51 #512D1F
square
#2A511F #1F4351 #461F51 #512D1F
split-complementary
#2A511F #2D1F51 #511F43
monochromatic
#0B1608 #13250E #2A511F #417D30 #58AA41

Accessibility & contrast

On white

9.15
#2A511F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2A511F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A511F
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A511F#FFFFFF#000000##FFFFFF
##2A511F1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534A1A
Deuteranopia (green-blind)
#4E4723
Tritanopia (blue-blind)
#274E46
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a511f;
/* rgb */ color: rgb(42, 81, 31);
/* oklch */ color: oklch(39.3% 0.090 139.2);
Tailwind
colors: {
  custom: {
    50: '#67825c',
    500: '#2a511f',
    950: '#000000',
  },
}
SCSS
$custom: #2a511f;
$custom-light: #67825c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a511f",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 31
  },
  "hsl": {
    "h": 106.8,
    "s": 44.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.39317,
    "c": 0.08984,
    "h": 139.2
  },
  "luminance": 0.06476
}

Semantic roles & 50–950 ramp

primary
#2A511F
secondary
#784686
accent
#53D4B8
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A04
muted
#7A7C79

Preview Lab

Preview with #2A511F

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

Preview Lab → · Contrast checker → · Palette generator →

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