#2F5124#2F5124

#2F5124 is a dark, moderate green. Relative luminance 0.066; OKLCH L 39.7% C 0.081 H 138.5°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#2F5124
RGBrgb(47, 81, 36)
HSLhsl(105, 38%, 23%)
HSVhsv(105, 56%, 32%)
CMYKcmyk(42%, 0%, 55.6%, 68.2%)
CIE-LABlab(30.92, -22.25, 22.48)
CIE-LCHlch(30.92, 31.63, 134.70°)
OKLaboklab(39.68% -0.061 0.054)
OKLCHoklch(39.68% 0.081 138.5)
XYZxyz(4.4330, 6.6163, 2.7122)
Luminance0.0662 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5124 #462451
analogous
#455124 #2F5124 #24512F
triadic
#2F5124 #242F51 #51242F
tetradic
#2F5124 #244551 #462451 #512F24
square
#2F5124 #244551 #462451 #512F24
split-complementary
#2F5124 #2F2451 #512445
monochromatic
#0C1509 #162711 #2F5124 #487B37 #60A64A

Accessibility & contrast

On white

9.04
#2F5124 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F5124
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5124#FFFFFF#000000##FFFFFF
##2F51241.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534B20
Deuteranopia (green-blind)
#4F4827
Tritanopia (blue-blind)
#2D4E47
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f5124;
/* rgb */ color: rgb(47, 81, 36);
/* oklch */ color: oklch(39.7% 0.081 138.5);
Tailwind
colors: {
  custom: {
    50: '#6a8260',
    500: '#2f5124',
    950: '#000000',
  },
}
SCSS
$custom: #2f5124;
$custom-light: #6a8260;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5124",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 36
  },
  "hsl": {
    "h": 105.333,
    "s": 38.462,
    "l": 22.941
  },
  "oklch": {
    "l": 0.39685,
    "c": 0.08146,
    "h": 138.5
  },
  "luminance": 0.06617
}

Semantic roles & 50–950 ramp

primary
#2F5124
secondary
#774C85
accent
#59CEB2
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A05
muted
#7A7C79

Preview Lab

Preview with #2F5124

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

Preview Lab → · Contrast checker → · Palette generator →

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