#2F4D0C#2F4D0C

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

Color values

HEX#2F4D0C
RGBrgb(47, 77, 12)
HSLhsl(88, 73%, 17%)
HSVhsv(88, 84%, 30%)
CMYKcmyk(39%, 0%, 84.4%, 69.8%)
CIE-LABlab(29.26, -22.73, 32.45)
CIE-LCHlch(29.26, 39.62, 125.01°)
OKLaboklab(38.25% -0.0643 0.072)
OKLCHoklch(38.25% 0.097 131.8)
XYZxyz(3.8925, 5.9385, 1.2889)
Luminance0.0594 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4D0C #2A0C4D
analogous
#4D4A0C #2F4D0C #0F4D0C
triadic
#2F4D0C #0C2F4D #4D0C2F
tetradic
#2F4D0C #0C4D4A #2A0C4D #4D0C0F
square
#2F4D0C #0C4D4A #2A0C4D #4D0C0F
split-complementary
#2F4D0C #0C0F4D #4A0C4D
monochromatic
#101A04 #101A04 #2F4D0C #4F8214 #70B71D

Accessibility & contrast

On white

9.60
#2F4D0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4D0C
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4D0C#FFFFFF#000000##FFFFFF
##2F4D0C1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514601
Deuteranopia (green-blind)
#4D4413
Tritanopia (blue-blind)
#304941
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f4d0c;
/* rgb */ color: rgb(47, 77, 12);
/* oklch */ color: oklch(38.3% 0.097 131.8);
Tailwind
colors: {
  custom: {
    50: '#6b7f51',
    500: '#2f4d0c',
    950: '#000000',
  },
}
SCSS
$custom: #2f4d0c;
$custom-light: #6b7f51;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4d0c",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 12
  },
  "hsl": {
    "h": 87.692,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.38251,
    "c": 0.0966,
    "h": 131.8
  },
  "luminance": 0.05939
}

Semantic roles & 50–950 ramp

primary
#2F4D0C
secondary
#572C89
accent
#38F08D
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #2F4D0C

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

Preview Lab → · Contrast checker → · Palette generator →

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