#2F4A18#2F4A18

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

Color values

HEX#2F4A18
RGBrgb(47, 74, 24)
HSLhsl(92, 51%, 19%)
HSVhsv(92, 68%, 29%)
CMYKcmyk(36.5%, 0%, 67.6%, 71%)
CIE-LABlab(28.29, -20.17, 26.00)
CIE-LCHlch(28.29, 32.91, 127.80°)
OKLaboklab(37.5% -0.0563 0.0604)
OKLCHoklch(37.5% 0.083 133)
XYZxyz(3.7859, 5.5677, 1.7392)
Luminance0.0557 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4A18 #33184A
analogous
#484A18 #2F4A18 #184A1A
triadic
#2F4A18 #182F4A #4A182F
tetradic
#2F4A18 #18484A #33184A #4A1A18
square
#2F4A18 #18484A #33184A #4A1A18
split-complementary
#2F4A18 #1A184A #4A1848
monochromatic
#0F1707 #121C09 #2F4A18 #4C7827 #6AA636

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F4A18#FFFFFF#000000##FFFFFF
##2F4A181.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)
#4D4412
Deuteranopia (green-blind)
#49421C
Tritanopia (blue-blind)
#2F473F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f4a18;
/* rgb */ color: rgb(47, 74, 24);
/* oklch */ color: oklch(37.5% 0.083 133.0);
Tailwind
colors: {
  custom: {
    50: '#6a7c57',
    500: '#2f4a18',
    950: '#000000',
  },
}
SCSS
$custom: #2f4a18;
$custom-light: #6a7c57;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4a18",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 24
  },
  "hsl": {
    "h": 92.4,
    "s": 51.02,
    "l": 19.216
  },
  "oklch": {
    "l": 0.375,
    "c": 0.08256,
    "h": 133
  },
  "luminance": 0.05568
}

Semantic roles & 50–950 ramp

primary
#2F4A18
secondary
#623D81
accent
#4DDA9A
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2F4A18

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

Preview Lab → · Contrast checker → · Palette generator →

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