#2F7841#2F7841

#2F7841 is a mid, moderate green. Relative luminance 0.144; OKLCH L 51.2% C 0.112 H 149.0°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#2F7841
RGBrgb(47, 120, 65)
HSLhsl(135, 44%, 33%)
HSVhsv(135, 61%, 47%)
CMYKcmyk(60.8%, 0%, 45.8%, 52.9%)
CIE-LABlab(44.83, -35.63, 23.56)
CIE-LCHlch(44.83, 42.71, 146.52°)
OKLaboklab(51.22% -0.0963 0.0579)
OKLCHoklch(51.22% 0.112 149)
XYZxyz(8.8423, 14.4181, 7.3170)
Luminance0.1442 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7841 #782F66
analogous
#41782F #2F7841 #2F7866
triadic
#2F7841 #412F78 #78412F
tetradic
#2F7841 #2F4178 #782F66 #78662F
square
#2F7841 #2F4178 #782F66 #78662F
split-complementary
#2F7841 #662F78 #782F41
monochromatic
#0D2011 #1E4C29 #2F7841 #40A459 #60C178

Accessibility & contrast

On white

5.41
#2F7841 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#2F7841 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7841
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7841#FFFFFF#000000##FFFFFF
##2F78411.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796E3D
Deuteranopia (green-blind)
#6F6745
Tritanopia (blue-blind)
#1C766B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2f7841;
/* rgb */ color: rgb(47, 120, 65);
/* oklch */ color: oklch(51.2% 0.112 149.0);
Tailwind
colors: {
  custom: {
    50: '#6fa076',
    500: '#2f7841',
    950: '#000000',
  },
}
SCSS
$custom: #2f7841;
$custom-light: #6fa076;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7841",
  "rgb": {
    "r": 47,
    "g": 120,
    "b": 65
  },
  "hsl": {
    "h": 134.795,
    "s": 43.713,
    "l": 32.745
  },
  "oklch": {
    "l": 0.51222,
    "c": 0.11243,
    "h": 149
  },
  "luminance": 0.14419
}

Semantic roles & 50–950 ramp

primary
#2F7841
secondary
#A85B95
accent
#54B4D3
background
#F7F9F7
surface
#EDF2ED
border
#C8CCC8
text
#080F08
muted
#7B7E7B

Preview Lab

Preview with #2F7841

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

Preview Lab → · Contrast checker → · Palette generator →

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