#2A511B#2A511B

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

Color values

HEX#2A511B
RGBrgb(42, 81, 27)
HSLhsl(103, 50%, 21%)
HSVhsv(103, 67%, 32%)
CMYKcmyk(48.1%, 0%, 66.7%, 68.2%)
CIE-LABlab(30.53, -25.30, 26.88)
CIE-LCHlch(30.53, 36.91, 133.26°)
OKLaboklab(39.26% -0.0697 0.0627)
OKLCHoklch(39.26% 0.094 138)
XYZxyz(4.0950, 6.4560, 2.0671)
Luminance0.0646 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A511B #421B51
analogous
#45511B #2A511B #1B5127
triadic
#2A511B #1B2A51 #511B2A
tetradic
#2A511B #1B4551 #421B51 #51271B
square
#2A511B #1B4551 #421B51 #51271B
split-complementary
#2A511B #271B51 #511B45
monochromatic
#0C1708 #12230C #2A511B #427F2A #5AAD3A

Accessibility & contrast

On white

9.17
#2A511B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2A511B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A511B
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A511B#FFFFFF#000000##FFFFFF
##2A511B1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A15
Deuteranopia (green-blind)
#4E471F
Tritanopia (blue-blind)
#284E45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a511b;
/* rgb */ color: rgb(42, 81, 27);
/* oklch */ color: oklch(39.3% 0.094 138.0);
Tailwind
colors: {
  custom: {
    50: '#67825a',
    500: '#2a511b',
    950: '#000000',
  },
}
SCSS
$custom: #2a511b;
$custom-light: #67825a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a511b",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 27
  },
  "hsl": {
    "h": 103.333,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.39263,
    "c": 0.09375,
    "h": 138
  },
  "luminance": 0.06456
}

Semantic roles & 50–950 ramp

primary
#2A511B
secondary
#734187
accent
#4EDAB3
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A04
muted
#7A7C79

Preview Lab

Preview with #2A511B

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

Preview Lab → · Contrast checker → · Palette generator →

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