#2F4813#2F4813

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

Color values

HEX#2F4813
RGBrgb(47, 72, 19)
HSLhsl(88, 58%, 18%)
HSVhsv(88, 74%, 28%)
CMYKcmyk(34.7%, 0%, 73.6%, 71.8%)
CIE-LABlab(27.53, -19.62, 27.70)
CIE-LCHlch(27.53, 33.94, 125.32°)
OKLaboklab(36.86% -0.0553 0.0633)
OKLCHoklch(36.86% 0.084 131.1)
XYZxyz(3.6072, 5.2860, 1.4462)
Luminance0.0529 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4813 #2C1348
analogous
#484613 #2F4813 #144813
triadic
#2F4813 #132F48 #48132F
tetradic
#2F4813 #134846 #2C1348 #481314
square
#2F4813 #134846 #2C1348 #481314
split-complementary
#2F4813 #131448 #461348
monochromatic
#101806 #101806 #2F4813 #4F7820 #6EA92D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F4813#FFFFFF#000000##FFFFFF
##2F48131.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)
#4B420C
Deuteranopia (green-blind)
#484017
Tritanopia (blue-blind)
#30453D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f4813;
/* rgb */ color: rgb(47, 72, 19);
/* oklch */ color: oklch(36.9% 0.084 131.1);
Tailwind
colors: {
  custom: {
    50: '#6a7b54',
    500: '#2f4813',
    950: '#000000',
  },
}
SCSS
$custom: #2f4813;
$custom-light: #6a7b54;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4813",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 19
  },
  "hsl": {
    "h": 88.302,
    "s": 58.242,
    "l": 17.843
  },
  "oklch": {
    "l": 0.36865,
    "c": 0.084,
    "h": 131.1
  },
  "luminance": 0.05286
}

Semantic roles & 50–950 ramp

primary
#2F4813
secondary
#593681
accent
#46E190
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2F4813

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

Preview Lab → · Contrast checker → · Palette generator →

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