#2F731B#2F731B

#2F731B is a mid, vivid green. Relative luminance 0.129; OKLCH L 49.3% C 0.139 H 139.6°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#2F731B
RGBrgb(47, 115, 27)
HSLhsl(106, 62%, 28%)
HSVhsv(106, 77%, 45%)
CMYKcmyk(59.1%, 0%, 76.5%, 54.9%)
CIE-LABlab(42.68, -38.46, 39.84)
CIE-LCHlch(42.68, 55.38, 133.99°)
OKLaboklab(49.31% -0.1057 0.0899)
OKLCHoklch(49.31% 0.139 139.6)
XYZxyz(7.5005, 12.9443, 3.1399)
Luminance0.1295 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F731B #5F1B73
analogous
#5B731B #2F731B #1B7333
triadic
#2F731B #1B2F73 #731B2F
tetradic
#2F731B #1B5B73 #5F1B73 #73331B
square
#2F731B #1B5B73 #5F1B73 #73331B
split-complementary
#2F731B #331B73 #731B5B
monochromatic
#0A1906 #1B410F #2F731B #43A527 #5BD038

Accessibility & contrast

On white

5.85
#2F731B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#2F731B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F731B
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F731B#FFFFFF#000000##FFFFFF
##2F731B1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f731b;
/* rgb */ color: rgb(47, 115, 27);
/* oklch */ color: oklch(49.3% 0.139 139.6);
Tailwind
colors: {
  custom: {
    50: '#709c5e',
    500: '#2f731b',
    950: '#000000',
  },
}
SCSS
$custom: #2f731b;
$custom-light: #709c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f731b",
  "rgb": {
    "r": 47,
    "g": 115,
    "b": 27
  },
  "hsl": {
    "h": 106.364,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.49311,
    "c": 0.13878,
    "h": 139.6
  },
  "luminance": 0.12945
}

Semantic roles & 50–950 ramp

primary
#2F731B
secondary
#9142A8
accent
#43E5C0
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2F731B

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

Preview Lab → · Contrast checker → · Palette generator →

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