#2F4A0B#2F4A0B

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

Color values

HEX#2F4A0B
RGBrgb(47, 74, 11)
HSLhsl(86, 74%, 17%)
HSVhsv(86, 85%, 29%)
CMYKcmyk(36.5%, 0%, 85.1%, 71%)
CIE-LABlab(28.18, -21.27, 31.80)
CIE-LCHlch(28.18, 38.26, 123.78°)
OKLaboklab(37.37% -0.0605 0.0705)
OKLCHoklch(37.37% 0.093 130.6)
XYZxyz(3.6814, 5.5259, 1.1892)
Luminance0.0553 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4A0B #260B4A
analogous
#4A460B #2F4A0B #104A0B
triadic
#2F4A0B #0B2F4A #4A0B2F
tetradic
#2F4A0B #0B4A46 #260B4A #4A0B10
square
#2F4A0B #0B4A46 #260B4A #4A0B10
split-complementary
#2F4A0B #0B104A #460B4A
monochromatic
#111B04 #111B04 #2F4A0B #517F13 #73B51B

Accessibility & contrast

On white

9.98
#2F4A0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4A0B
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4A0B#FFFFFF#000000##FFFFFF
##2F4A0B1.009.982.119.98
#FFFFFF9.981.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4400
Deuteranopia (green-blind)
#4A4212
Tritanopia (blue-blind)
#30463E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f4a0b;
/* rgb */ color: rgb(47, 74, 11);
/* oklch */ color: oklch(37.4% 0.093 130.6);
Tailwind
colors: {
  custom: {
    50: '#6b7c50',
    500: '#2f4a0b',
    950: '#000000',
  },
}
SCSS
$custom: #2f4a0b;
$custom-light: #6b7c50;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4a0b",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 11
  },
  "hsl": {
    "h": 85.714,
    "s": 74.118,
    "l": 16.667
  },
  "oklch": {
    "l": 0.37374,
    "c": 0.09291,
    "h": 130.6
  },
  "luminance": 0.05526
}

Semantic roles & 50–950 ramp

primary
#2F4A0B
secondary
#522B86
accent
#37F187
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #2F4A0B

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

Preview Lab → · Contrast checker → · Palette generator →

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