#2F4A17#2F4A17

#2F4A17 is a dark, moderate yellow-green. Relative luminance 0.056; OKLCH L 37.5% C 0.084 H 132.7°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#2F4A17
RGBrgb(47, 74, 23)
HSLhsl(92, 53%, 19%)
HSVhsv(92, 69%, 29%)
CMYKcmyk(36.5%, 0%, 68.9%, 71%)
CIE-LABlab(28.28, -20.27, 26.51)
CIE-LCHlch(28.28, 33.37, 127.41°)
OKLaboklab(37.49% -0.0567 0.0613)
OKLCHoklch(37.49% 0.084 132.7)
XYZxyz(3.7757, 5.5636, 1.6854)
Luminance0.0556 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4A17 #32174A
analogous
#494A17 #2F4A17 #174A19
triadic
#2F4A17 #172F4A #4A172F
tetradic
#2F4A17 #17494A #32174A #4A1917
square
#2F4A17 #17494A #32174A #4A1917
split-complementary
#2F4A17 #19174A #4A1749
monochromatic
#0F1707 #111B08 #2F4A17 #4D7926 #6AA734

Accessibility & contrast

On white

9.94
#2F4A17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2F4A17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4A17
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4A17#FFFFFF#000000##FFFFFF
##2F4A171.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4411
Deuteranopia (green-blind)
#49421B
Tritanopia (blue-blind)
#2F473F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f4a17;
/* rgb */ color: rgb(47, 74, 23);
/* oklch */ color: oklch(37.5% 0.084 132.7);
Tailwind
colors: {
  custom: {
    50: '#6a7c56',
    500: '#2f4a17',
    950: '#000000',
  },
}
SCSS
$custom: #2f4a17;
$custom-light: #6a7c56;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4a17",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 23
  },
  "hsl": {
    "h": 91.765,
    "s": 52.577,
    "l": 19.02
  },
  "oklch": {
    "l": 0.37487,
    "c": 0.08351,
    "h": 132.7
  },
  "luminance": 0.05564
}

Semantic roles & 50–950 ramp

primary
#2F4A17
secondary
#603C81
accent
#4CDC98
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2F4A17

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

Preview Lab → · Contrast checker → · Palette generator →

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