#2F5B1C#2F5B1C

#2F5B1C is a dark, moderate green. Relative luminance 0.082; OKLCH L 42.4% C 0.105 H 137.6°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#2F5B1C
RGBrgb(47, 91, 28)
HSLhsl(102, 53%, 23%)
HSVhsv(102, 69%, 36%)
CMYKcmyk(48.4%, 0%, 69.2%, 64.3%)
CIE-LABlab(34.33, -28.09, 30.67)
CIE-LCHlch(34.33, 41.59, 132.49°)
OKLaboklab(42.45% -0.0776 0.0708)
OKLCHoklch(42.45% 0.105 137.6)
XYZxyz(5.1228, 8.1700, 2.4054)
Luminance0.0817 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5B1C #481C5B
analogous
#4E5B1C #2F5B1C #1C5B28
triadic
#2F5B1C #1C2F5B #5B1C2F
tetradic
#2F5B1C #1C4E5B #481C5B #5B281C
square
#2F5B1C #1C4E5B #481C5B #5B281C
split-complementary
#2F5B1C #281C5B #5B1C4E
monochromatic
#0C1707 #172C0E #2F5B1C #478A2A #5FB939

Accessibility & contrast

On white

7.97
#2F5B1C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2F5B1C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5B1C
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5B1C#FFFFFF#000000##FFFFFF
##2F5B1C1.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5314
Deuteranopia (green-blind)
#584F21
Tritanopia (blue-blind)
#2C584E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f5b1c;
/* rgb */ color: rgb(47, 91, 28);
/* oklch */ color: oklch(42.4% 0.105 137.6);
Tailwind
colors: {
  custom: {
    50: '#6c8a5b',
    500: '#2f5b1c',
    950: '#000000',
  },
}
SCSS
$custom: #2f5b1c;
$custom-light: #6c8a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5b1c",
  "rgb": {
    "r": 47,
    "g": 91,
    "b": 28
  },
  "hsl": {
    "h": 101.905,
    "s": 52.941,
    "l": 23.333
  },
  "oklch": {
    "l": 0.42448,
    "c": 0.10502,
    "h": 137.6
  },
  "luminance": 0.0817
}

Semantic roles & 50–950 ramp

primary
#2F5B1C
secondary
#794290
accent
#4BDCB1
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #2F5B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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