#2F581B#2F581B

#2F581B is a dark, moderate green. Relative luminance 0.077; OKLCH L 41.6% C 0.101 H 136.9°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#2F581B
RGBrgb(47, 88, 27)
HSLhsl(100, 53%, 23%)
HSVhsv(100, 69%, 35%)
CMYKcmyk(46.6%, 0%, 69.3%, 65.5%)
CIE-LABlab(33.27, -26.79, 29.99)
CIE-LCHlch(33.27, 40.21, 131.78°)
OKLaboklab(41.57% -0.0741 0.0692)
OKLCHoklch(41.57% 0.101 136.9)
XYZxyz(4.8597, 7.6626, 2.2597)
Luminance0.0766 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F581B #441B58
analogous
#4D581B #2F581B #1B5826
triadic
#2F581B #1B2F58 #581B2F
tetradic
#2F581B #1B4D58 #441B58 #58261B
square
#2F581B #1B4D58 #441B58 #58261B
split-complementary
#2F581B #261B58 #581B4D
monochromatic
#0D1707 #16290D #2F581B #488729 #61B638

Accessibility & contrast

On white

8.29
#2F581B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2F581B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F581B
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F581B#FFFFFF#000000##FFFFFF
##2F581B1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5013
Deuteranopia (green-blind)
#554D20
Tritanopia (blue-blind)
#2D554B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f581b;
/* rgb */ color: rgb(47, 88, 27);
/* oklch */ color: oklch(41.6% 0.101 136.9);
Tailwind
colors: {
  custom: {
    50: '#6b875a',
    500: '#2f581b',
    950: '#000000',
  },
}
SCSS
$custom: #2f581b;
$custom-light: #6b875a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f581b",
  "rgb": {
    "r": 47,
    "g": 88,
    "b": 27
  },
  "hsl": {
    "h": 100.328,
    "s": 53.043,
    "l": 22.549
  },
  "oklch": {
    "l": 0.41573,
    "c": 0.10143,
    "h": 136.9
  },
  "luminance": 0.07663
}

Semantic roles & 50–950 ramp

primary
#2F581B
secondary
#75418E
accent
#4BDCAD
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #2F581B

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

Preview Lab → · Contrast checker → · Palette generator →

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