#2F511F#2F511F

#2F511F is a dark, moderate green. Relative luminance 0.066; OKLCH L 39.6% C 0.087 H 136.8°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#2F511F
RGBrgb(47, 81, 31)
HSLhsl(101, 45%, 22%)
HSVhsv(101, 62%, 32%)
CMYKcmyk(42%, 0%, 61.7%, 68.2%)
CIE-LABlab(30.85, -22.93, 25.19)
CIE-LCHlch(30.85, 34.06, 132.31°)
OKLaboklab(39.61% -0.0632 0.0594)
OKLCHoklch(39.61% 0.087 136.8)
XYZxyz(4.3619, 6.5879, 2.3378)
Luminance0.0659 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F511F #411F51
analogous
#48511F #2F511F #1F5128
triadic
#2F511F #1F2F51 #511F2F
tetradic
#2F511F #1F4851 #411F51 #51281F
square
#2F511F #1F4851 #411F51 #51281F
split-complementary
#2F511F #281F51 #511F48
monochromatic
#0D1608 #15250E #2F511F #497D30 #62AA41

Accessibility & contrast

On white

9.06
#2F511F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2F511F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F511F
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F511F#FFFFFF#000000##FFFFFF
##2F511F1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A1A
Deuteranopia (green-blind)
#4F4823
Tritanopia (blue-blind)
#2E4E46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f511f;
/* rgb */ color: rgb(47, 81, 31);
/* oklch */ color: oklch(39.6% 0.087 136.8);
Tailwind
colors: {
  custom: {
    50: '#6a825c',
    500: '#2f511f',
    950: '#000000',
  },
}
SCSS
$custom: #2f511f;
$custom-light: #6a825c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f511f",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 31
  },
  "hsl": {
    "h": 100.8,
    "s": 44.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.39608,
    "c": 0.0868,
    "h": 136.8
  },
  "luminance": 0.06588
}

Semantic roles & 50–950 ramp

primary
#2F511F
secondary
#714686
accent
#53D4AB
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A04
muted
#7A7C79

Preview Lab

Preview with #2F511F

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

Preview Lab → · Contrast checker → · Palette generator →

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