#2F4A0F#2F4A0F

#2F4A0F is a dark, moderate yellow-green. Relative luminance 0.055; OKLCH L 37.4% C 0.090 H 131.2°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#2F4A0F
RGBrgb(47, 74, 15)
HSLhsl(87, 66%, 17%)
HSVhsv(87, 80%, 29%)
CMYKcmyk(36.5%, 0%, 79.7%, 71%)
CIE-LABlab(28.21, -21.00, 30.22)
CIE-LCHlch(28.21, 36.80, 124.79°)
OKLaboklab(37.41% -0.0594 0.0679)
OKLCHoklch(37.41% 0.09 131.2)
XYZxyz(3.7073, 5.5363, 1.3251)
Luminance0.0554 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4A0F #2A0F4A
analogous
#4A480F #2F4A0F #114A0F
triadic
#2F4A0F #0F2F4A #4A0F2F
tetradic
#2F4A0F #0F4A48 #2A0F4A #4A0F11
square
#2F4A0F #0F4A48 #2A0F4A #4A0F11
split-complementary
#2F4A0F #0F114A #480F4A
monochromatic
#101905 #101905 #2F4A0F #4F7D19 #70B024

Accessibility & contrast

On white

9.97
#2F4A0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4A0F
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4A0F#FFFFFF#000000##FFFFFF
##2F4A0F1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4405
Deuteranopia (green-blind)
#4A4214
Tritanopia (blue-blind)
#30473E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f4a0f;
/* rgb */ color: rgb(47, 74, 15);
/* oklch */ color: oklch(37.4% 0.090 131.2);
Tailwind
colors: {
  custom: {
    50: '#6a7c52',
    500: '#2f4a0f',
    950: '#000000',
  },
}
SCSS
$custom: #2f4a0f;
$custom-light: #6a7c52;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4a0f",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 15
  },
  "hsl": {
    "h": 87.458,
    "s": 66.292,
    "l": 17.451
  },
  "oklch": {
    "l": 0.37405,
    "c": 0.09022,
    "h": 131.2
  },
  "luminance": 0.05536
}

Semantic roles & 50–950 ramp

primary
#2F4A0F
secondary
#573084
accent
#3FE98D
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #2F4A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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