#2C731B#2C731B

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

Color values

HEX#2C731B
RGBrgb(44, 115, 27)
HSLhsl(108, 62%, 28%)
HSVhsv(108, 77%, 45%)
CMYKcmyk(61.7%, 0%, 76.5%, 54.9%)
CIE-LABlab(42.57, -39.30, 39.70)
CIE-LCHlch(42.57, 55.86, 134.71°)
OKLaboklab(49.2% -0.1078 0.0897)
OKLCHoklch(49.2% 0.14 140.2)
XYZxyz(7.3669, 12.8754, 3.1337)
Luminance0.1288 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C731B #621B73
analogous
#58731B #2C731B #1B7336
triadic
#2C731B #1B2C73 #731B2C
tetradic
#2C731B #1B5873 #621B73 #73361B
square
#2C731B #1B5873 #621B73 #73361B
split-complementary
#2C731B #361B73 #731B58
monochromatic
#091906 #19410F #2C731B #3FA527 #56D038

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2C731B#FFFFFF#000000##FFFFFF
##2C731B1.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)
#6D6224
Tritanopia (blue-blind)
#236F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2c731b;
/* rgb */ color: rgb(44, 115, 27);
/* oklch */ color: oklch(49.2% 0.140 140.2);
Tailwind
colors: {
  custom: {
    50: '#6e9c5e',
    500: '#2c731b',
    950: '#000000',
  },
}
SCSS
$custom: #2c731b;
$custom-light: #6e9c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c731b",
  "rgb": {
    "r": 44,
    "g": 115,
    "b": 27
  },
  "hsl": {
    "h": 108.409,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.49196,
    "c": 0.14018,
    "h": 140.2
  },
  "luminance": 0.12876
}

Semantic roles & 50–950 ramp

primary
#2C731B
secondary
#9442A8
accent
#43E5C6
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2C731B

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

Preview Lab → · Contrast checker → · Palette generator →

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