#2F7239#2F7239

#2F7239 is a mid, moderate green. Relative luminance 0.129; OKLCH L 49.4% C 0.112 H 146.6°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#2F7239
RGBrgb(47, 114, 57)
HSLhsl(129, 42%, 32%)
HSVhsv(129, 59%, 45%)
CMYKcmyk(58.8%, 0%, 50%, 55.3%)
CIE-LABlab(42.66, -34.40, 25.25)
CIE-LCHlch(42.66, 42.67, 143.72°)
OKLaboklab(49.4% -0.0932 0.0615)
OKLCHoklch(49.4% 0.112 146.6)
XYZxyz(7.9276, 12.9337, 5.9488)
Luminance0.1293 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7239 #722F68
analogous
#47722F #2F7239 #2F725B
triadic
#2F7239 #392F72 #72392F
tetradic
#2F7239 #2F4772 #722F68 #725B2F
square
#2F7239 #2F4772 #722F68 #725B2F
split-complementary
#2F7239 #5B2F72 #722F47
monochromatic
#0B1B0E #1D4723 #2F7239 #419D4F #5FBD6D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F7239#FFFFFF#000000##FFFFFF
##2F72391.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)
#746834
Deuteranopia (green-blind)
#6B623D
Tritanopia (blue-blind)
#216F65
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2f7239;
/* rgb */ color: rgb(47, 114, 57);
/* oklch */ color: oklch(49.4% 0.112 146.6);
Tailwind
colors: {
  custom: {
    50: '#6e9b70',
    500: '#2f7239',
    950: '#000000',
  },
}
SCSS
$custom: #2f7239;
$custom-light: #6e9b70;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7239",
  "rgb": {
    "r": 47,
    "g": 114,
    "b": 57
  },
  "hsl": {
    "h": 128.955,
    "s": 41.615,
    "l": 31.569
  },
  "oklch": {
    "l": 0.49403,
    "c": 0.1116,
    "h": 146.6
  },
  "luminance": 0.12934
}

Semantic roles & 50–950 ramp

primary
#2F7239
secondary
#A35A98
accent
#56BFD1
background
#F6F9F6
surface
#ECF2EC
border
#C7CCC7
text
#080E07
muted
#7B7E7A

Preview Lab

Preview with #2F7239

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

Preview Lab → · Contrast checker → · Palette generator →

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