#2F4814#2F4814

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

Color values

HEX#2F4814
RGBrgb(47, 72, 20)
HSLhsl(89, 57%, 18%)
HSVhsv(89, 72%, 28%)
CMYKcmyk(34.7%, 0%, 72.2%, 71.8%)
CIE-LABlab(27.54, -19.53, 27.22)
CIE-LCHlch(27.54, 33.50, 125.66°)
OKLaboklab(36.88% -0.0549 0.0624)
OKLCHoklch(36.88% 0.083 131.4)
XYZxyz(3.6159, 5.2895, 1.4921)
Luminance0.0529 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4814 #2D1448
analogous
#484714 #2F4814 #154814
triadic
#2F4814 #142F48 #48142F
tetradic
#2F4814 #144847 #2D1448 #481415
square
#2F4814 #144847 #2D1448 #481415
split-complementary
#2F4814 #141548 #471448
monochromatic
#101807 #101807 #2F4814 #4E7821 #6EA82F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F4814#FFFFFF#000000##FFFFFF
##2F48141.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)
#4B420D
Deuteranopia (green-blind)
#484018
Tritanopia (blue-blind)
#30453D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f4814;
/* rgb */ color: rgb(47, 72, 20);
/* oklch */ color: oklch(36.9% 0.083 131.4);
Tailwind
colors: {
  custom: {
    50: '#6a7b54',
    500: '#2f4814',
    950: '#000000',
  },
}
SCSS
$custom: #2f4814;
$custom-light: #6a7b54;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4814",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 20
  },
  "hsl": {
    "h": 88.846,
    "s": 56.522,
    "l": 18.039
  },
  "oklch": {
    "l": 0.36876,
    "c": 0.08313,
    "h": 131.4
  },
  "luminance": 0.0529
}

Semantic roles & 50–950 ramp

primary
#2F4814
secondary
#5B3880
accent
#48E091
background
#F6F7F5
surface
#EBEDE8
border
#C6C8C4
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2F4814

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

Preview Lab → · Contrast checker → · Palette generator →

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