#2F501F#2F501F

#2F501F is a dark, moderate green. Relative luminance 0.064; OKLCH L 39.3% C 0.085 H 136.6°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#2F501F
RGBrgb(47, 80, 31)
HSLhsl(100, 44%, 22%)
HSVhsv(100, 61%, 31%)
CMYKcmyk(41.3%, 0%, 61.2%, 68.6%)
CIE-LABlab(30.50, -22.42, 24.78)
CIE-LCHlch(30.50, 33.42, 132.14°)
OKLaboklab(39.32% -0.0619 0.0585)
OKLCHoklch(39.32% 0.085 136.6)
XYZxyz(4.2882, 6.4404, 2.3132)
Luminance0.0644 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F501F #401F50
analogous
#48501F #2F501F #1F5028
triadic
#2F501F #1F2F50 #501F2F
tetradic
#2F501F #1F4850 #401F50 #50281F
square
#2F501F #1F4850 #401F50 #50281F
split-complementary
#2F501F #281F50 #501F48
monochromatic
#0D1609 #15240E #2F501F #497C30 #63A841

Accessibility & contrast

On white

9.18
#2F501F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2F501F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F501F
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F501F#FFFFFF#000000##FFFFFF
##2F501F1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534A1A
Deuteranopia (green-blind)
#4E4722
Tritanopia (blue-blind)
#2E4D45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f501f;
/* rgb */ color: rgb(47, 80, 31);
/* oklch */ color: oklch(39.3% 0.085 136.6);
Tailwind
colors: {
  custom: {
    50: '#6a815c',
    500: '#2f501f',
    950: '#000000',
  },
}
SCSS
$custom: #2f501f;
$custom-light: #6a815c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f501f",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 31
  },
  "hsl": {
    "h": 100.408,
    "s": 44.144,
    "l": 21.765
  },
  "oklch": {
    "l": 0.39321,
    "c": 0.08518,
    "h": 136.6
  },
  "luminance": 0.06441
}

Semantic roles & 50–950 ramp

primary
#2F501F
secondary
#704685
accent
#54D4AA
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A04
muted
#7A7C79

Preview Lab

Preview with #2F501F

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

Preview Lab → · Contrast checker → · Palette generator →

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