#2F4810#2F4810

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

Color values

HEX#2F4810
RGBrgb(47, 72, 16)
HSLhsl(87, 64%, 17%)
HSVhsv(87, 78%, 28%)
CMYKcmyk(34.7%, 0%, 77.8%, 71.8%)
CIE-LABlab(27.51, -19.88, 29.07)
CIE-LCHlch(27.51, 35.22, 124.37°)
OKLaboklab(36.84% -0.0563 0.0657)
OKLCHoklch(36.84% 0.086 130.6)
XYZxyz(3.5832, 5.2764, 1.3198)
Luminance0.0528 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4810 #291048
analogous
#484510 #2F4810 #134810
triadic
#2F4810 #102F48 #48102F
tetradic
#2F4810 #104845 #291048 #481013
square
#2F4810 #104845 #291048 #481013
split-complementary
#2F4810 #101348 #451048
monochromatic
#101906 #101906 #2F4810 #507A1B #70AC26

Accessibility & contrast

On white

10.22
#2F4810 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4810
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4810#FFFFFF#000000##FFFFFF
##2F48101.0010.222.0610.22
#FFFFFF10.221.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f4810;
/* rgb */ color: rgb(47, 72, 16);
/* oklch */ color: oklch(36.8% 0.086 130.6);
Tailwind
colors: {
  custom: {
    50: '#6a7b52',
    500: '#2f4810',
    950: '#000000',
  },
}
SCSS
$custom: #2f4810;
$custom-light: #6a7b52;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4810",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 16
  },
  "hsl": {
    "h": 86.786,
    "s": 63.636,
    "l": 17.255
  },
  "oklch": {
    "l": 0.36835,
    "c": 0.08648,
    "h": 130.6
  },
  "luminance": 0.05276
}

Semantic roles & 50–950 ramp

primary
#2F4810
secondary
#563282
accent
#41E78B
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #2F4810

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

Preview Lab → · Contrast checker → · Palette generator →

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