#2B5118#2B5118

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

Color values

HEX#2B5118
RGBrgb(43, 81, 24)
HSLhsl(100, 54%, 21%)
HSVhsv(100, 70%, 32%)
CMYKcmyk(46.9%, 0%, 70.4%, 68.2%)
CIE-LABlab(30.55, -25.26, 28.43)
CIE-LCHlch(30.55, 38.03, 131.62°)
OKLaboklab(39.28% -0.0699 0.0656)
OKLCHoklch(39.28% 0.096 136.8)
XYZxyz(4.1034, 6.4642, 1.8955)
Luminance0.0646 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5118 #3E1851
analogous
#475118 #2B5118 #185121
triadic
#2B5118 #182B51 #51182B
tetradic
#2B5118 #184751 #3E1851 #512118
square
#2B5118 #184751 #3E1851 #512118
split-complementary
#2B5118 #211851 #511847
monochromatic
#0D1807 #12220A #2B5118 #448026 #5DAF34

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B5118#FFFFFF#000000##FFFFFF
##2B51181.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)
#544A11
Deuteranopia (green-blind)
#4F471D
Tritanopia (blue-blind)
#294E45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2b5118;
/* rgb */ color: rgb(43, 81, 24);
/* oklch */ color: oklch(39.3% 0.096 136.8);
Tailwind
colors: {
  custom: {
    50: '#688258',
    500: '#2b5118',
    950: '#000000',
  },
}
SCSS
$custom: #2b5118;
$custom-light: #688258;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5118",
  "rgb": {
    "r": 43,
    "g": 81,
    "b": 24
  },
  "hsl": {
    "h": 100,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.39283,
    "c": 0.09588,
    "h": 136.8
  },
  "luminance": 0.06464
}

Semantic roles & 50–950 ramp

primary
#2B5118
secondary
#6F3D88
accent
#4ADEAC
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2B5118

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

Preview Lab → · Contrast checker → · Palette generator →

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