#2D8A1F#2D8A1F

#2D8A1F is a mid, vivid green. Relative luminance 0.188; OKLCH L 55.8% C 0.166 H 141.3°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#2D8A1F
RGBrgb(45, 138, 31)
HSLhsl(112, 63%, 33%)
HSVhsv(112, 78%, 54%)
CMYKcmyk(67.4%, 0%, 77.5%, 45.9%)
CIE-LABlab(50.49, -47.32, 46.10)
CIE-LCHlch(50.49, 66.06, 135.75°)
OKLaboklab(55.76% -0.1292 0.1036)
OKLCHoklch(55.76% 0.166 141.3)
XYZxyz(10.4174, 18.8327, 4.3821)
Luminance0.1883 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D8A1F #7C1F8A
analogous
#628A1F #2D8A1F #1F8A47
triadic
#2D8A1F #1F2D8A #8A1F2D
tetradic
#2D8A1F #1F628A #7C1F8A #8A471F
square
#2D8A1F #1F628A #7C1F8A #8A471F
split-complementary
#2D8A1F #471F8A #8A1F62
monochromatic
#0C2609 #1D5814 #2D8A1F #3DBC2A #5FD74C

Accessibility & contrast

On white

4.41
#2D8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#2D8A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2D8A1F
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D8A1F#FFFFFF#000000##000000
##2D8A1F1.004.414.774.77
#FFFFFF4.411.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D07
Deuteranopia (green-blind)
#83752B
Tritanopia (blue-blind)
#1B8676
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2d8a1f;
/* rgb */ color: rgb(45, 138, 31);
/* oklch */ color: oklch(55.8% 0.166 141.3);
Tailwind
colors: {
  custom: {
    50: '#74ad63',
    500: '#2d8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #2d8a1f;
$custom-light: #74ad63;
$custom-dark: #000000;
JSON
{
  "hex": "#2d8a1f",
  "rgb": {
    "r": 45,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 112.15,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.55763,
    "c": 0.16563,
    "h": 141.3
  },
  "luminance": 0.18834
}

Semantic roles & 50–950 ramp

primary
#2D8A1F
secondary
#AB4BBA
accent
#41E6D1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2D8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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