#2F4D0F#2F4D0F

#2F4D0F is a dark, moderate yellow-green. Relative luminance 0.059; OKLCH L 38.3% C 0.095 H 132.2°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#2F4D0F
RGBrgb(47, 77, 15)
HSLhsl(89, 67%, 18%)
HSVhsv(89, 81%, 30%)
CMYKcmyk(39%, 0%, 80.5%, 69.8%)
CIE-LABlab(29.28, -22.52, 31.28)
CIE-LCHlch(29.28, 38.55, 125.75°)
OKLaboklab(38.27% -0.0635 0.0701)
OKLCHoklch(38.27% 0.095 132.2)
XYZxyz(3.9123, 5.9464, 1.3935)
Luminance0.0595 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4D0F #2D0F4D
analogous
#4D4C0F #2F4D0F #104D0F
triadic
#2F4D0F #0F2F4D #4D0F2F
tetradic
#2F4D0F #0F4D4C #2D0F4D #4D0F10
square
#2F4D0F #0F4D4C #2D0F4D #4D0F10
split-complementary
#2F4D0F #0F104D #4C0F4D
monochromatic
#101A05 #101A05 #2F4D0F #4E8019 #6EB323

Accessibility & contrast

On white

9.59
#2F4D0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2F4D0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4D0F
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4D0F#FFFFFF#000000##FFFFFF
##2F4D0F1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514604
Deuteranopia (green-blind)
#4C4415
Tritanopia (blue-blind)
#304A41
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f4d0f;
/* rgb */ color: rgb(47, 77, 15);
/* oklch */ color: oklch(38.3% 0.095 132.2);
Tailwind
colors: {
  custom: {
    50: '#6b7f52',
    500: '#2f4d0f',
    950: '#000000',
  },
}
SCSS
$custom: #2f4d0f;
$custom-light: #6b7f52;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4d0f",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 15
  },
  "hsl": {
    "h": 89.032,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.38274,
    "c": 0.09463,
    "h": 132.2
  },
  "luminance": 0.05947
}

Semantic roles & 50–950 ramp

primary
#2F4D0F
secondary
#5B3187
accent
#3EEA91
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #2F4D0F

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

Preview Lab → · Contrast checker → · Palette generator →

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