#2F701B#2F701B

#2F701B is a mid, vivid green. Relative luminance 0.123; OKLCH L 48.5% C 0.135 H 139.4°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#2F701B
RGBrgb(47, 112, 27)
HSLhsl(106, 61%, 27%)
HSVhsv(106, 76%, 44%)
CMYKcmyk(58%, 0%, 75.9%, 56.1%)
CIE-LABlab(41.64, -37.26, 38.79)
CIE-LCHlch(41.64, 53.79, 133.84°)
OKLaboklab(48.46% -0.1025 0.0877)
OKLCHoklch(48.46% 0.135 139.4)
XYZxyz(7.1640, 12.2712, 3.0278)
Luminance0.1227 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F701B #5C1B70
analogous
#5A701B #2F701B #1B7031
triadic
#2F701B #1B2F70 #701B2F
tetradic
#2F701B #1B5A70 #5C1B70 #70311B
square
#2F701B #1B5A70 #5C1B70 #70311B
split-complementary
#2F701B #311B70 #701B5A
monochromatic
#0A1906 #1A3F0F #2F701B #44A127 #5ACF37

Accessibility & contrast

On white

6.08
#2F701B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#2F701B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F701B
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F701B#FFFFFF#000000##FFFFFF
##2F701B1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#73660C
Deuteranopia (green-blind)
#6B6024
Tritanopia (blue-blind)
#286C5F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2f701b;
/* rgb */ color: rgb(47, 112, 27);
/* oklch */ color: oklch(48.5% 0.135 139.4);
Tailwind
colors: {
  custom: {
    50: '#6f9a5d',
    500: '#2f701b',
    950: '#000000',
  },
}
SCSS
$custom: #2f701b;
$custom-light: #6f9a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f701b",
  "rgb": {
    "r": 47,
    "g": 112,
    "b": 27
  },
  "hsl": {
    "h": 105.882,
    "s": 61.151,
    "l": 27.255
  },
  "oklch": {
    "l": 0.48457,
    "c": 0.13489,
    "h": 139.4
  },
  "luminance": 0.12272
}

Semantic roles & 50–950 ramp

primary
#2F701B
secondary
#8E42A5
accent
#44E4BE
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2F701B

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

Preview Lab → · Contrast checker → · Palette generator →

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