#2D731B#2D731B

#2D731B is a mid, vivid green. Relative luminance 0.129; OKLCH L 49.2% C 0.140 H 140.0°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#2D731B
RGBrgb(45, 115, 27)
HSLhsl(108, 62%, 28%)
HSVhsv(108, 77%, 45%)
CMYKcmyk(60.9%, 0%, 76.5%, 54.9%)
CIE-LABlab(42.61, -39.02, 39.75)
CIE-LCHlch(42.61, 55.70, 134.47°)
OKLaboklab(49.23% -0.1071 0.0897)
OKLCHoklch(49.23% 0.14 140)
XYZxyz(7.4104, 12.8978, 3.1357)
Luminance0.1290 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D731B #611B73
analogous
#59731B #2D731B #1B7335
triadic
#2D731B #1B2D73 #731B2D
tetradic
#2D731B #1B5973 #611B73 #73351B
square
#2D731B #1B5973 #611B73 #73351B
split-complementary
#2D731B #351B73 #731B59
monochromatic
#0A1906 #1A410F #2D731B #40A527 #57D038

Accessibility & contrast

On white

5.87
#2D731B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#2D731B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D731B
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D731B#FFFFFF#000000##FFFFFF
##2D731B1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#76680A
Deuteranopia (green-blind)
#6E6224
Tritanopia (blue-blind)
#246F62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2d731b;
/* rgb */ color: rgb(45, 115, 27);
/* oklch */ color: oklch(49.2% 0.140 140.0);
Tailwind
colors: {
  custom: {
    50: '#6f9c5e',
    500: '#2d731b',
    950: '#000000',
  },
}
SCSS
$custom: #2d731b;
$custom-light: #6f9c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d731b",
  "rgb": {
    "r": 45,
    "g": 115,
    "b": 27
  },
  "hsl": {
    "h": 107.727,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.49233,
    "c": 0.13972,
    "h": 140
  },
  "luminance": 0.12898
}

Semantic roles & 50–950 ramp

primary
#2D731B
secondary
#9342A8
accent
#43E5C4
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2D731B

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

Preview Lab → · Contrast checker → · Palette generator →

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