#2F4718#2F4718

#2F4718 is a dark, moderate yellow-green. Relative luminance 0.052; OKLCH L 36.6% C 0.078 H 131.9°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#2F4718
RGBrgb(47, 71, 24)
HSLhsl(91, 49%, 19%)
HSVhsv(91, 66%, 28%)
CMYKcmyk(33.8%, 0%, 66.2%, 72.2%)
CIE-LABlab(27.23, -18.58, 24.81)
CIE-LCHlch(27.23, 30.99, 126.83°)
OKLaboklab(36.64% -0.0519 0.0578)
OKLCHoklch(36.64% 0.078 131.9)
XYZxyz(3.5904, 5.1766, 1.6740)
Luminance0.0518 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4718 #301847
analogous
#464718 #2F4718 #184718
triadic
#2F4718 #182F47 #47182F
tetradic
#2F4718 #184647 #301847 #471818
square
#2F4718 #184647 #301847 #471818
split-complementary
#2F4718 #181847 #471846
monochromatic
#0F1708 #111909 #2F4718 #4D7527 #6CA237

Accessibility & contrast

On white

10.32
#2F4718 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2F4718 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4718
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4718#FFFFFF#000000##FFFFFF
##2F47181.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A4213
Deuteranopia (green-blind)
#47401B
Tritanopia (blue-blind)
#30443D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f4718;
/* rgb */ color: rgb(47, 71, 24);
/* oklch */ color: oklch(36.6% 0.078 131.9);
Tailwind
colors: {
  custom: {
    50: '#697a57',
    500: '#2f4718',
    950: '#000000',
  },
}
SCSS
$custom: #2f4718;
$custom-light: #697a57;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4718",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 24
  },
  "hsl": {
    "h": 90.638,
    "s": 49.474,
    "l": 18.627
  },
  "oklch": {
    "l": 0.36636,
    "c": 0.07773,
    "h": 131.9
  },
  "luminance": 0.05177
}

Semantic roles & 50–950 ramp

primary
#2F4718
secondary
#5E3D7E
accent
#4FD995
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2F4718

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

Preview Lab → · Contrast checker → · Palette generator →

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