#2F7840#2F7840

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

Color values

HEX#2F7840
RGBrgb(47, 120, 64)
HSLhsl(134, 44%, 33%)
HSVhsv(134, 61%, 47%)
CMYKcmyk(60.8%, 0%, 46.7%, 52.9%)
CIE-LABlab(44.81, -35.80, 24.10)
CIE-LCHlch(44.81, 43.16, 146.06°)
OKLaboklab(51.2% -0.0968 0.0591)
OKLCHoklch(51.2% 0.113 148.6)
XYZxyz(8.8136, 14.4066, 7.1658)
Luminance0.1441 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7840 #782F67
analogous
#42782F #2F7840 #2F7865
triadic
#2F7840 #402F78 #78402F
tetradic
#2F7840 #2F4278 #782F67 #78652F
square
#2F7840 #2F4278 #782F67 #78652F
split-complementary
#2F7840 #652F78 #782F42
monochromatic
#0D2011 #1E4C29 #2F7840 #40A457 #60C177

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F7840#FFFFFF#000000##FFFFFF
##2F78401.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)
#796E3C
Deuteranopia (green-blind)
#6F6744
Tritanopia (blue-blind)
#1D766A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2f7840;
/* rgb */ color: rgb(47, 120, 64);
/* oklch */ color: oklch(51.2% 0.113 148.6);
Tailwind
colors: {
  custom: {
    50: '#6fa076',
    500: '#2f7840',
    950: '#000000',
  },
}
SCSS
$custom: #2f7840;
$custom-light: #6fa076;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7840",
  "rgb": {
    "r": 47,
    "g": 120,
    "b": 64
  },
  "hsl": {
    "h": 133.973,
    "s": 43.713,
    "l": 32.745
  },
  "oklch": {
    "l": 0.51204,
    "c": 0.11346,
    "h": 148.6
  },
  "luminance": 0.14407
}

Semantic roles & 50–950 ramp

primary
#2F7840
secondary
#A85B96
accent
#54B6D3
background
#F7F9F7
surface
#EDF2ED
border
#C8CCC8
text
#080F08
muted
#7B7E7B

Preview Lab

Preview with #2F7840

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

Preview Lab → · Contrast checker → · Palette generator →

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