#2F4E1F#2F4E1F

#2F4E1F is a dark, moderate yellow-green. Relative luminance 0.062; OKLCH L 38.7% C 0.082 H 136.2°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#2F4E1F
RGBrgb(47, 78, 31)
HSLhsl(100, 43%, 21%)
HSVhsv(100, 60%, 31%)
CMYKcmyk(39.7%, 0%, 60.3%, 69.4%)
CIE-LABlab(29.79, -21.40, 23.95)
CIE-LCHlch(29.79, 32.12, 131.79°)
OKLaboklab(38.75% -0.0591 0.0567)
OKLCHoklch(38.75% 0.082 136.2)
XYZxyz(4.1439, 6.1519, 2.2651)
Luminance0.0615 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E1F #3E1F4E
analogous
#474E1F #2F4E1F #1F4E27
triadic
#2F4E1F #1F2F4E #4E1F2F
tetradic
#2F4E1F #1F474E #3E1F4E #4E271F
square
#2F4E1F #1F474E #3E1F4E #4E271F
split-complementary
#2F4E1F #271F4E #4E1F47
monochromatic
#0D1609 #15220E #2F4E1F #497A30 #64A642

Accessibility & contrast

On white

9.42
#2F4E1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2F4E1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E1F
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E1F#FFFFFF#000000##FFFFFF
##2F4E1F1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#51481A
Deuteranopia (green-blind)
#4C4522
Tritanopia (blue-blind)
#2E4B44
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f4e1f;
/* rgb */ color: rgb(47, 78, 31);
/* oklch */ color: oklch(38.7% 0.082 136.2);
Tailwind
colors: {
  custom: {
    50: '#6a805c',
    500: '#2f4e1f',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e1f;
$custom-light: #6a805c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e1f",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 31
  },
  "hsl": {
    "h": 99.574,
    "s": 43.119,
    "l": 21.373
  },
  "oklch": {
    "l": 0.38747,
    "c": 0.08191,
    "h": 136.2
  },
  "luminance": 0.06152
}

Semantic roles & 50–950 ramp

primary
#2F4E1F
secondary
#6E4683
accent
#55D3A8
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A04
muted
#7A7C79

Preview Lab

Preview with #2F4E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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