#2F7B34#2F7B34

#2F7B34 is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.8% C 0.130 H 144.5°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#2F7B34
RGBrgb(47, 123, 52)
HSLhsl(124, 45%, 33%)
HSVhsv(124, 62%, 48%)
CMYKcmyk(61.8%, 0%, 57.7%, 51.8%)
CIE-LABlab(45.66, -38.93, 31.58)
CIE-LCHlch(45.66, 50.13, 140.95°)
OKLaboklab(51.85% -0.1055 0.0752)
OKLCHoklch(51.85% 0.13 144.5)
XYZxyz(8.8746, 15.0174, 5.6791)
Luminance0.1502 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7B34 #7B2F76
analogous
#507B2F #2F7B34 #2F7B5A
triadic
#2F7B34 #342F7B #7B342F
tetradic
#2F7B34 #2F507B #7B2F76 #7B5A2F
square
#2F7B34 #2F507B #7B2F76 #7B5A2F
split-complementary
#2F7B34 #5A2F7B #7B2F50
monochromatic
#0D220F #1E4F21 #2F7B34 #40A747 #62C368

Accessibility & contrast

On white

5.25
#2F7B34 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#2F7B34 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7B34
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7B34#FFFFFF#000000##FFFFFF
##2F7B341.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D702D
Deuteranopia (green-blind)
#746A39
Tritanopia (blue-blind)
#20786B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2f7b34;
/* rgb */ color: rgb(47, 123, 52);
/* oklch */ color: oklch(51.8% 0.130 144.5);
Tailwind
colors: {
  custom: {
    50: '#70a26d',
    500: '#2f7b34',
    950: '#000000',
  },
}
SCSS
$custom: #2f7b34;
$custom-light: #70a26d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7b34",
  "rgb": {
    "r": 47,
    "g": 123,
    "b": 52
  },
  "hsl": {
    "h": 123.947,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.51846,
    "c": 0.1296,
    "h": 144.5
  },
  "luminance": 0.15018
}

Semantic roles & 50–950 ramp

primary
#2F7B34
secondary
#AA5CA5
accent
#53CCD4
background
#F7FAF6
surface
#EDF3EC
border
#C8CDC7
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #2F7B34

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

Preview Lab → · Contrast checker → · Palette generator →

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