#2F4C09#2F4C09

#2F4C09 is a dark, moderate yellow-green. Relative luminance 0.058; OKLCH L 37.9% C 0.097 H 131.1°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#2F4C09
RGBrgb(47, 76, 9)
HSLhsl(86, 79%, 17%)
HSVhsv(86, 88%, 30%)
CMYKcmyk(38.2%, 0%, 88.2%, 70.2%)
CIE-LABlab(28.88, -22.40, 33.18)
CIE-LCHlch(28.88, 40.03, 124.03°)
OKLaboklab(37.94% -0.0637 0.073)
OKLCHoklch(37.94% 0.097 131.1)
XYZxyz(3.8060, 5.7928, 1.1760)
Luminance0.0579 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4C09 #26094C
analogous
#4C4809 #2F4C09 #0E4C09
triadic
#2F4C09 #092F4C #4C092F
tetradic
#2F4C09 #094C48 #26094C #4C090E
square
#2F4C09 #094C48 #26094C #4C090E
split-complementary
#2F4C09 #090E4C #48094C
monochromatic
#111B03 #111B03 #2F4C09 #51830F #73B916

Accessibility & contrast

On white

9.73
#2F4C09 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2F4C09 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4C09
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4C09#FFFFFF#000000##FFFFFF
##2F4C091.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504500
Deuteranopia (green-blind)
#4C4311
Tritanopia (blue-blind)
#304840
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f4c09;
/* rgb */ color: rgb(47, 76, 9);
/* oklch */ color: oklch(37.9% 0.097 131.1);
Tailwind
colors: {
  custom: {
    50: '#6b7e4f',
    500: '#2f4c09',
    950: '#000000',
  },
}
SCSS
$custom: #2f4c09;
$custom-light: #6b7e4f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4c09",
  "rgb": {
    "r": 47,
    "g": 76,
    "b": 9
  },
  "hsl": {
    "h": 85.97,
    "s": 78.824,
    "l": 16.667
  },
  "oklch": {
    "l": 0.37941,
    "c": 0.09691,
    "h": 131.1
  },
  "luminance": 0.05793
}

Semantic roles & 50–950 ramp

primary
#2F4C09
secondary
#522889
accent
#33F587
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #2F4C09

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

Preview Lab → · Contrast checker → · Palette generator →

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