#2F4508#2F4508

#2F4508 is a dark, moderate yellow-green. Relative luminance 0.049; OKLCH L 35.9% C 0.088 H 128.2°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#2F4508
RGBrgb(47, 69, 8)
HSLhsl(82, 79%, 15%)
HSVhsv(82, 88%, 27%)
CMYKcmyk(31.9%, 0%, 88.4%, 72.9%)
CIE-LABlab(26.38, -18.85, 31.26)
CIE-LCHlch(26.38, 36.51, 121.09°)
OKLaboklab(35.9% -0.0542 0.0688)
OKLCHoklch(35.9% 0.088 128.2)
XYZxyz(3.3442, 4.8780, 0.9950)
Luminance0.0488 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4508 #1E0845
analogous
#453C08 #2F4508 #114508
triadic
#2F4508 #082F45 #45082F
tetradic
#2F4508 #08453C #1E0845 #450811
square
#2F4508 #08453C #1E0845 #450811
split-complementary
#2F4508 #081145 #3C0845
monochromatic
#131B03 #131B03 #2F4508 #547C0E #7AB315

Accessibility & contrast

On white

10.63
#2F4508 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2F4508 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4508
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4508#FFFFFF#000000##FFFFFF
##2F45081.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#493F00
Deuteranopia (green-blind)
#463E0E
Tritanopia (blue-blind)
#31413A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f4508;
/* rgb */ color: rgb(47, 69, 8);
/* oklch */ color: oklch(35.9% 0.088 128.2);
Tailwind
colors: {
  custom: {
    50: '#6a784d',
    500: '#2f4508',
    950: '#000000',
  },
}
SCSS
$custom: #2f4508;
$custom-light: #6a784d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4508",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 8
  },
  "hsl": {
    "h": 81.639,
    "s": 79.221,
    "l": 15.098
  },
  "oklch": {
    "l": 0.35903,
    "c": 0.08757,
    "h": 128.2
  },
  "luminance": 0.04878
}

Semantic roles & 50–950 ramp

primary
#2F4508
secondary
#472683
accent
#32F679
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #2F4508

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

Preview Lab → · Contrast checker → · Palette generator →

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