#2F4815#2F4815

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

Color values

HEX#2F4815
RGBrgb(47, 72, 21)
HSLhsl(89, 55%, 18%)
HSVhsv(89, 71%, 28%)
CMYKcmyk(34.7%, 0%, 70.8%, 71.8%)
CIE-LABlab(27.55, -19.43, 26.73)
CIE-LCHlch(27.55, 33.04, 126.02°)
OKLaboklab(36.89% -0.0545 0.0615)
OKLCHoklch(36.89% 0.082 131.6)
XYZxyz(3.6250, 5.2931, 1.5400)
Luminance0.0529 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4815 #2E1548
analogous
#484715 #2F4815 #154815
triadic
#2F4815 #152F48 #48152F
tetradic
#2F4815 #154847 #2E1548 #481515
square
#2F4815 #154847 #2E1548 #481515
split-complementary
#2F4815 #151548 #471548
monochromatic
#0F1807 #101907 #2F4815 #4E7723 #6DA731

Accessibility & contrast

On white

10.20
#2F4815 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4815
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4815#FFFFFF#000000##FFFFFF
##2F48151.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f4815;
/* rgb */ color: rgb(47, 72, 21);
/* oklch */ color: oklch(36.9% 0.082 131.6);
Tailwind
colors: {
  custom: {
    50: '#6a7b55',
    500: '#2f4815',
    950: '#000000',
  },
}
SCSS
$custom: #2f4815;
$custom-light: #6a7b55;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4815",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 21
  },
  "hsl": {
    "h": 89.412,
    "s": 54.839,
    "l": 18.235
  },
  "oklch": {
    "l": 0.36887,
    "c": 0.08222,
    "h": 131.6
  },
  "luminance": 0.05293
}

Semantic roles & 50–950 ramp

primary
#2F4815
secondary
#5C3980
accent
#4ADE92
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2F4815

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

Preview Lab → · Contrast checker → · Palette generator →

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