#2D841B#2D841B

#2D841B is a mid, vivid green. Relative luminance 0.171; OKLCH L 54.1% C 0.161 H 140.7°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#2D841B
RGBrgb(45, 132, 27)
HSLhsl(110, 66%, 31%)
HSVhsv(110, 80%, 52%)
CMYKcmyk(65.9%, 0%, 79.5%, 48.2%)
CIE-LABlab(48.43, -45.44, 45.49)
CIE-LCHlch(48.43, 64.30, 134.97°)
OKLaboklab(54.05% -0.1244 0.1017)
OKLCHoklch(54.05% 0.161 140.7)
XYZxyz(9.5308, 17.1386, 3.8425)
Luminance0.1714 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D841B #721B84
analogous
#61841B #2D841B #1B843D
triadic
#2D841B #1B2D84 #841B2D
tetradic
#2D841B #1B6184 #721B84 #843D1B
square
#2D841B #1B6184 #721B84 #843D1B
split-complementary
#2D841B #3D1B84 #841B61
monochromatic
#0A1E06 #1C5111 #2D841B #3EB725 #5BD841

Accessibility & contrast

On white

4.74
#2D841B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#2D841B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D841B
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D841B#FFFFFF#000000##FFFFFF
##2D841B1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887701
Deuteranopia (green-blind)
#7D7027
Tritanopia (blue-blind)
#1E8070
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2d841b;
/* rgb */ color: rgb(45, 132, 27);
/* oklch */ color: oklch(54.1% 0.161 140.7);
Tailwind
colors: {
  custom: {
    50: '#72a960',
    500: '#2d841b',
    950: '#000000',
  },
}
SCSS
$custom: #2d841b;
$custom-light: #72a960;
$custom-dark: #000000;
JSON
{
  "hex": "#2d841b",
  "rgb": {
    "r": 45,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 109.714,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54051,
    "c": 0.1607,
    "h": 140.7
  },
  "luminance": 0.1714
}

Semantic roles & 50–950 ramp

primary
#2D841B
secondary
#A343B7
accent
#3FE9CC
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2D841B

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

Preview Lab → · Contrast checker → · Palette generator →

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