#2F4711#2F4711

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

Color values

HEX#2F4711
RGBrgb(47, 71, 17)
HSLhsl(87, 61%, 17%)
HSVhsv(87, 76%, 28%)
CMYKcmyk(33.8%, 0%, 76.1%, 72.2%)
CIE-LABlab(27.16, -19.27, 28.26)
CIE-LCHlch(27.16, 34.20, 124.30°)
OKLaboklab(36.56% -0.0545 0.0641)
OKLCHoklch(36.56% 0.084 130.4)
XYZxyz(3.5267, 5.1512, 1.3387)
Luminance0.0515 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4711 #291147
analogous
#474411 #2F4711 #144711
triadic
#2F4711 #112F47 #47112F
tetradic
#2F4711 #114744 #291147 #471114
square
#2F4711 #114744 #291147 #471114
split-complementary
#2F4711 #111447 #441147
monochromatic
#101906 #101906 #2F4711 #50781D #70AA29

Accessibility & contrast

On white

10.34
#2F4711 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2F4711 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4711
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4711#FFFFFF#000000##FFFFFF
##2F47111.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4109
Deuteranopia (green-blind)
#474016
Tritanopia (blue-blind)
#30443C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f4711;
/* rgb */ color: rgb(47, 71, 17);
/* oklch */ color: oklch(36.6% 0.084 130.4);
Tailwind
colors: {
  custom: {
    50: '#6a7a52',
    500: '#2f4711',
    950: '#000000',
  },
}
SCSS
$custom: #2f4711;
$custom-light: #6a7a52;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4711",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 17
  },
  "hsl": {
    "h": 86.667,
    "s": 61.364,
    "l": 17.255
  },
  "oklch": {
    "l": 0.36555,
    "c": 0.08416,
    "h": 130.4
  },
  "luminance": 0.05151
}

Semantic roles & 50–950 ramp

primary
#2F4711
secondary
#563381
accent
#43E48B
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #2F4711

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

Preview Lab → · Contrast checker → · Palette generator →

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