#2B5218#2B5218

#2B5218 is a dark, moderate green. Relative luminance 0.066; OKLCH L 39.6% C 0.097 H 137.0°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#2B5218
RGBrgb(43, 82, 24)
HSLhsl(100, 55%, 21%)
HSVhsv(100, 71%, 32%)
CMYKcmyk(47.6%, 0%, 70.7%, 67.8%)
CIE-LABlab(30.91, -25.74, 28.82)
CIE-LCHlch(30.91, 38.64, 131.77°)
OKLaboklab(39.57% -0.0712 0.0664)
OKLCHoklch(39.57% 0.097 137)
XYZxyz(4.1783, 6.6139, 1.9204)
Luminance0.0661 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5218 #3F1852
analogous
#485218 #2B5218 #185222
triadic
#2B5218 #182B52 #52182B
tetradic
#2B5218 #184852 #3F1852 #522218
square
#2B5218 #184852 #3F1852 #522218
split-complementary
#2B5218 #221852 #521848
monochromatic
#0C1807 #12230A #2B5218 #448126 #5DB134

Accessibility & contrast

On white

9.04
#2B5218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2B5218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5218
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5218#FFFFFF#000000##FFFFFF
##2B52181.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B11
Deuteranopia (green-blind)
#50481D
Tritanopia (blue-blind)
#294F46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2b5218;
/* rgb */ color: rgb(43, 82, 24);
/* oklch */ color: oklch(39.6% 0.097 137.0);
Tailwind
colors: {
  custom: {
    50: '#688358',
    500: '#2b5218',
    950: '#000000',
  },
}
SCSS
$custom: #2b5218;
$custom-light: #688358;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5218",
  "rgb": {
    "r": 43,
    "g": 82,
    "b": 24
  },
  "hsl": {
    "h": 100.345,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.39575,
    "c": 0.09739,
    "h": 137
  },
  "luminance": 0.06614
}

Semantic roles & 50–950 ramp

primary
#2B5218
secondary
#703D89
accent
#4ADEAD
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2B5218

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

Preview Lab → · Contrast checker → · Palette generator →

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