#2F4A11#2F4A11

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

Color values

HEX#2F4A11
RGBrgb(47, 74, 17)
HSLhsl(88, 63%, 18%)
HSVhsv(88, 77%, 29%)
CMYKcmyk(36.5%, 0%, 77%, 71%)
CIE-LABlab(28.23, -20.84, 29.36)
CIE-LCHlch(28.23, 36.00, 125.37°)
OKLaboklab(37.42% -0.0588 0.0664)
OKLCHoklch(37.42% 0.089 131.5)
XYZxyz(3.7222, 5.5422, 1.4038)
Luminance0.0554 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4A11 #2C114A
analogous
#4A4811 #2F4A11 #134A11
triadic
#2F4A11 #112F4A #4A112F
tetradic
#2F4A11 #114A48 #2C114A #4A1113
square
#2F4A11 #114A48 #2C114A #4A1113
split-complementary
#2F4A11 #11134A #48114A
monochromatic
#101906 #101906 #2F4A11 #4F7C1C #6EAE28

Accessibility & contrast

On white

9.96
#2F4A11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4A11
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4A11#FFFFFF#000000##FFFFFF
##2F4A111.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4408
Deuteranopia (green-blind)
#4A4216
Tritanopia (blue-blind)
#30473F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f4a11;
/* rgb */ color: rgb(47, 74, 17);
/* oklch */ color: oklch(37.4% 0.089 131.5);
Tailwind
colors: {
  custom: {
    50: '#6a7c53',
    500: '#2f4a11',
    950: '#000000',
  },
}
SCSS
$custom: #2f4a11;
$custom-light: #6a7c53;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4a11",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 17
  },
  "hsl": {
    "h": 88.421,
    "s": 62.637,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37423,
    "c": 0.0887,
    "h": 131.5
  },
  "luminance": 0.05542
}

Semantic roles & 50–950 ramp

primary
#2F4A11
secondary
#593383
accent
#42E690
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #2F4A11

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

Preview Lab → · Contrast checker → · Palette generator →

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