#2F5F1B#2F5F1B

#2F5F1B is a dark, moderate green. Relative luminance 0.089; OKLCH L 43.6% C 0.112 H 137.9°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#2F5F1B
RGBrgb(47, 95, 27)
HSLhsl(102, 56%, 24%)
HSVhsv(102, 72%, 37%)
CMYKcmyk(50.5%, 0%, 71.6%, 62.7%)
CIE-LABlab(35.73, -30.02, 32.64)
CIE-LCHlch(35.73, 44.34, 132.60°)
OKLaboklab(43.59% -0.0829 0.0748)
OKLCHoklch(43.59% 0.112 137.9)
XYZxyz(5.4621, 8.8675, 2.4605)
Luminance0.0887 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5F1B #4B1B5F
analogous
#515F1B #2F5F1B #1B5F29
triadic
#2F5F1B #1B2F5F #5F1B2F
tetradic
#2F5F1B #1B515F #4B1B5F #5F291B
square
#2F5F1B #1B515F #4B1B5F #5F291B
split-complementary
#2F5F1B #291B5F #5F1B51
monochromatic
#0C1807 #172F0D #2F5F1B #478F29 #5EBE36

Accessibility & contrast

On white

7.57
#2F5F1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#2F5F1B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5F1B
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5F1B#FFFFFF#000000##FFFFFF
##2F5F1B1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625712
Deuteranopia (green-blind)
#5C5321
Tritanopia (blue-blind)
#2C5C51
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f5f1b;
/* rgb */ color: rgb(47, 95, 27);
/* oklch */ color: oklch(43.6% 0.112 137.9);
Tailwind
colors: {
  custom: {
    50: '#6c8d5b',
    500: '#2f5f1b',
    950: '#000000',
  },
}
SCSS
$custom: #2f5f1b;
$custom-light: #6c8d5b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5f1b",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 27
  },
  "hsl": {
    "h": 102.353,
    "s": 55.738,
    "l": 23.922
  },
  "oklch": {
    "l": 0.43588,
    "c": 0.11166,
    "h": 137.9
  },
  "luminance": 0.08868
}

Semantic roles & 50–950 ramp

primary
#2F5F1B
secondary
#7C4195
accent
#49DFB3
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2F5F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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