#2A511A#2A511A

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

Color values

HEX#2A511A
RGBrgb(42, 81, 26)
HSLhsl(103, 51%, 21%)
HSVhsv(103, 68%, 32%)
CMYKcmyk(48.1%, 0%, 67.9%, 68.2%)
CIE-LABlab(30.52, -25.41, 27.38)
CIE-LCHlch(30.52, 37.36, 132.87°)
OKLaboklab(39.25% -0.0701 0.0636)
OKLCHoklch(39.25% 0.095 137.8)
XYZxyz(4.0836, 6.4514, 2.0072)
Luminance0.0645 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A511A #411A51
analogous
#45511A #2A511A #1A5125
triadic
#2A511A #1A2A51 #511A2A
tetradic
#2A511A #1A4551 #411A51 #51251A
square
#2A511A #1A4551 #411A51 #51251A
split-complementary
#2A511A #251A51 #511A45
monochromatic
#0C1707 #12230B #2A511A #427F29 #5AAE38

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A511A#FFFFFF#000000##FFFFFF
##2A511A1.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)
#544A14
Deuteranopia (green-blind)
#4E471E
Tritanopia (blue-blind)
#284E45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a511a;
/* rgb */ color: rgb(42, 81, 26);
/* oklch */ color: oklch(39.3% 0.095 137.8);
Tailwind
colors: {
  custom: {
    50: '#678259',
    500: '#2a511a',
    950: '#000000',
  },
}
SCSS
$custom: #2a511a;
$custom-light: #678259;
$custom-dark: #000000;
JSON
{
  "hex": "#2a511a",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 26
  },
  "hsl": {
    "h": 102.545,
    "s": 51.402,
    "l": 20.98
  },
  "oklch": {
    "l": 0.39251,
    "c": 0.09468,
    "h": 137.8
  },
  "luminance": 0.06452
}

Semantic roles & 50–950 ramp

primary
#2A511A
secondary
#724087
accent
#4DDBB2
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A511A

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

Preview Lab → · Contrast checker → · Palette generator →

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