#2F4818#2F4818

#2F4818 is a dark, moderate yellow-green. Relative luminance 0.053; OKLCH L 36.9% C 0.079 H 132.3°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#2F4818
RGBrgb(47, 72, 24)
HSLhsl(91, 50%, 19%)
HSVhsv(91, 67%, 28%)
CMYKcmyk(34.7%, 0%, 66.7%, 71.8%)
CIE-LABlab(27.59, -19.11, 25.21)
CIE-LCHlch(27.59, 31.63, 127.17°)
OKLaboklab(36.92% -0.0534 0.0587)
OKLCHoklch(36.92% 0.079 132.3)
XYZxyz(3.6545, 5.3049, 1.6954)
Luminance0.0530 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4818 #311848
analogous
#474818 #2F4818 #184819
triadic
#2F4818 #182F48 #48182F
tetradic
#2F4818 #184748 #311848 #481918
square
#2F4818 #184748 #311848 #481918
split-complementary
#2F4818 #191848 #481847
monochromatic
#0F1708 #111A09 #2F4818 #4D7627 #6BA437

Accessibility & contrast

On white

10.19
#2F4818 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4818
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4818#FFFFFF#000000##FFFFFF
##2F48181.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4213
Deuteranopia (green-blind)
#48401C
Tritanopia (blue-blind)
#30453E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f4818;
/* rgb */ color: rgb(47, 72, 24);
/* oklch */ color: oklch(36.9% 0.079 132.3);
Tailwind
colors: {
  custom: {
    50: '#697b57',
    500: '#2f4818',
    950: '#000000',
  },
}
SCSS
$custom: #2f4818;
$custom-light: #697b57;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4818",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 24
  },
  "hsl": {
    "h": 91.25,
    "s": 50,
    "l": 18.824
  },
  "oklch": {
    "l": 0.36924,
    "c": 0.07935,
    "h": 132.3
  },
  "luminance": 0.05305
}

Semantic roles & 50–950 ramp

primary
#2F4818
secondary
#5F3D7F
accent
#4EDA97
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2F4818

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

Preview Lab → · Contrast checker → · Palette generator →

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