#2A511C#2A511C

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

Color values

HEX#2A511C
RGBrgb(42, 81, 28)
HSLhsl(104, 49%, 21%)
HSVhsv(104, 65%, 32%)
CMYKcmyk(48.1%, 0%, 65.4%, 68.2%)
CIE-LABlab(30.55, -25.18, 26.37)
CIE-LCHlch(30.55, 36.46, 133.68°)
OKLaboklab(39.28% -0.0693 0.0617)
OKLCHoklch(39.28% 0.093 138.3)
XYZxyz(4.1067, 6.4607, 2.1290)
Luminance0.0646 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A511C #431C51
analogous
#45511C #2A511C #1C5129
triadic
#2A511C #1C2A51 #511C2A
tetradic
#2A511C #1C4551 #431C51 #51291C
square
#2A511C #1C4551 #431C51 #51291C
split-complementary
#2A511C #291C51 #511C45
monochromatic
#0C1708 #12240C #2A511C #427E2C #59AC3B

Accessibility & contrast

On white

9.16
#2A511C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A511C
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A511C#FFFFFF#000000##FFFFFF
##2A511C1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A16
Deuteranopia (green-blind)
#4E4720
Tritanopia (blue-blind)
#274E46
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a511c;
/* rgb */ color: rgb(42, 81, 28);
/* oklch */ color: oklch(39.3% 0.093 138.3);
Tailwind
colors: {
  custom: {
    50: '#67825a',
    500: '#2a511c',
    950: '#000000',
  },
}
SCSS
$custom: #2a511c;
$custom-light: #67825a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a511c",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 28
  },
  "hsl": {
    "h": 104.151,
    "s": 48.624,
    "l": 21.373
  },
  "oklch": {
    "l": 0.39276,
    "c": 0.0928,
    "h": 138.3
  },
  "luminance": 0.06461
}

Semantic roles & 50–950 ramp

primary
#2A511C
secondary
#754287
accent
#50D8B4
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A04
muted
#7A7C79

Preview Lab

Preview with #2A511C

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

Preview Lab → · Contrast checker → · Palette generator →

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