#2F4811#2F4811

#2F4811 is a dark, moderate yellow-green. Relative luminance 0.053; OKLCH L 36.8% C 0.086 H 130.8°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#2F4811
RGBrgb(47, 72, 17)
HSLhsl(87, 62%, 17%)
HSVhsv(87, 76%, 28%)
CMYKcmyk(34.7%, 0%, 76.4%, 71.8%)
CIE-LABlab(27.52, -19.80, 28.62)
CIE-LCHlch(27.52, 34.80, 124.67°)
OKLaboklab(36.84% -0.0559 0.0649)
OKLCHoklch(36.84% 0.086 130.8)
XYZxyz(3.5908, 5.2794, 1.3600)
Luminance0.0528 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4811 #2A1148
analogous
#484611 #2F4811 #134811
triadic
#2F4811 #112F48 #48112F
tetradic
#2F4811 #114846 #2A1148 #481113
square
#2F4811 #114846 #2A1148 #481113
split-complementary
#2F4811 #111348 #461148
monochromatic
#101906 #101906 #2F4811 #4F7A1D #70AB28

Accessibility & contrast

On white

10.21
#2F4811 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2F4811 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4811
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4811#FFFFFF#000000##FFFFFF
##2F48111.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C4209
Deuteranopia (green-blind)
#484016
Tritanopia (blue-blind)
#30453D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f4811;
/* rgb */ color: rgb(47, 72, 17);
/* oklch */ color: oklch(36.8% 0.086 130.8);
Tailwind
colors: {
  custom: {
    50: '#6a7b53',
    500: '#2f4811',
    950: '#000000',
  },
}
SCSS
$custom: #2f4811;
$custom-light: #6a7b53;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4811",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 17
  },
  "hsl": {
    "h": 87.273,
    "s": 61.798,
    "l": 17.451
  },
  "oklch": {
    "l": 0.36844,
    "c": 0.08569,
    "h": 130.8
  },
  "luminance": 0.0528
}

Semantic roles & 50–950 ramp

primary
#2F4811
secondary
#573382
accent
#43E58D
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #2F4811

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

Preview Lab → · Contrast checker → · Palette generator →

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