#2D8342#2D8342

#2D8342 is a mid, vivid green. Relative luminance 0.172; OKLCH L 54.2% C 0.128 H 148.4°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#2D8342
RGBrgb(45, 131, 66)
HSLhsl(135, 49%, 35%)
HSVhsv(135, 66%, 51%)
CMYKcmyk(65.6%, 0%, 49.6%, 48.6%)
CIE-LABlab(48.49, -40.51, 27.66)
CIE-LCHlch(48.49, 49.05, 145.68°)
OKLaboklab(54.22% -0.1093 0.0673)
OKLCHoklch(54.22% 0.128 148.4)
XYZxyz(10.1811, 17.1828, 7.9333)
Luminance0.1718 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D8342 #832D6E
analogous
#43832D #2D8342 #2D836D
triadic
#2D8342 #422D83 #83422D
tetradic
#2D8342 #2D4383 #832D6E #836D2D
square
#2D8342 #2D4383 #832D6E #836D2D
split-complementary
#2D8342 #6D2D83 #832D43
monochromatic
#0E2814 #1D552B #2D8342 #3DB159 #62C97B

Accessibility & contrast

On white

4.73
#2D8342 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#2D8342 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D8342
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D8342#FFFFFF#000000##FFFFFF
##2D83421.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84783D
Deuteranopia (green-blind)
#797047
Tritanopia (blue-blind)
#118074
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2d8342;
/* rgb */ color: rgb(45, 131, 66);
/* oklch */ color: oklch(54.2% 0.128 148.4);
Tailwind
colors: {
  custom: {
    50: '#70a877',
    500: '#2d8342',
    950: '#000000',
  },
}
SCSS
$custom: #2d8342;
$custom-light: #70a877;
$custom-dark: #000000;
JSON
{
  "hex": "#2d8342",
  "rgb": {
    "r": 45,
    "g": 131,
    "b": 66
  },
  "hsl": {
    "h": 134.651,
    "s": 48.864,
    "l": 34.51
  },
  "oklch": {
    "l": 0.54224,
    "c": 0.12842,
    "h": 148.4
  },
  "luminance": 0.17184
}

Semantic roles & 50–950 ramp

primary
#2D8342
secondary
#AF5C9B
accent
#4FB7D8
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #2D8342

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

Preview Lab → · Contrast checker → · Palette generator →

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