#2F671B#2F671B

#2F671B is a mid, vivid green. Relative luminance 0.104; OKLCH L 45.9% C 0.123 H 138.7°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#2F671B
RGBrgb(47, 103, 27)
HSLhsl(104, 58%, 25%)
HSVhsv(104, 74%, 40%)
CMYKcmyk(54.4%, 0%, 73.8%, 59.6%)
CIE-LABlab(38.52, -33.52, 35.59)
CIE-LCHlch(38.52, 48.89, 133.28°)
OKLaboklab(45.89% -0.0924 0.081)
OKLCHoklch(45.89% 0.123 138.7)
XYZxyz(6.2201, 10.3835, 2.7131)
Luminance0.1038 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F671B #531B67
analogous
#55671B #2F671B #1B672D
triadic
#2F671B #1B2F67 #671B2F
tetradic
#2F671B #1B5567 #531B67 #672D1B
square
#2F671B #1B5567 #531B67 #672D1B
split-complementary
#2F671B #2D1B67 #671B55
monochromatic
#0B1806 #19370E #2F671B #459728 #5BC834

Accessibility & contrast

On white

6.83
#2F671B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#2F671B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F671B
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F671B#FFFFFF#000000##FFFFFF
##2F671B1.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5E0F
Deuteranopia (green-blind)
#635922
Tritanopia (blue-blind)
#2A6358
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f671b;
/* rgb */ color: rgb(47, 103, 27);
/* oklch */ color: oklch(45.9% 0.123 138.7);
Tailwind
colors: {
  custom: {
    50: '#6e935c',
    500: '#2f671b',
    950: '#000000',
  },
}
SCSS
$custom: #2f671b;
$custom-light: #6e935c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f671b",
  "rgb": {
    "r": 47,
    "g": 103,
    "b": 27
  },
  "hsl": {
    "h": 104.211,
    "s": 58.462,
    "l": 25.49
  },
  "oklch": {
    "l": 0.45885,
    "c": 0.12286,
    "h": 138.7
  },
  "luminance": 0.10384
}

Semantic roles & 50–950 ramp

primary
#2F671B
secondary
#84429C
accent
#46E2B9
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #2F671B

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

Preview Lab → · Contrast checker → · Palette generator →

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