#2F4E0B#2F4E0B

#2F4E0B is a dark, moderate yellow-green. Relative luminance 0.061; OKLCH L 38.5% C 0.099 H 132.0°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#2F4E0B
RGBrgb(47, 78, 11)
HSLhsl(88, 75%, 17%)
HSVhsv(88, 86%, 31%)
CMYKcmyk(39.7%, 0%, 85.9%, 69.4%)
CIE-LABlab(29.61, -23.29, 33.14)
CIE-LCHlch(29.61, 40.51, 125.09°)
OKLaboklab(38.54% -0.0659 0.0733)
OKLCHoklch(38.54% 0.099 132)
XYZxyz(3.9570, 6.0771, 1.2811)
Luminance0.0608 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E0B #2A0B4E
analogous
#4E4B0B #2F4E0B #0E4E0B
triadic
#2F4E0B #0B2F4E #4E0B2F
tetradic
#2F4E0B #0B4E4B #2A0B4E #4E0B0E
square
#2F4E0B #0B4E4B #2A0B4E #4E0B0E
split-complementary
#2F4E0B #0B0E4E #4B0B4E
monochromatic
#101B04 #101B04 #2F4E0B #4F8413 #70B91A

Accessibility & contrast

On white

9.48
#2F4E0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2F4E0B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E0B
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E0B#FFFFFF#000000##FFFFFF
##2F4E0B1.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524700
Deuteranopia (green-blind)
#4E4512
Tritanopia (blue-blind)
#304A42
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f4e0b;
/* rgb */ color: rgb(47, 78, 11);
/* oklch */ color: oklch(38.5% 0.099 132.0);
Tailwind
colors: {
  custom: {
    50: '#6b8050',
    500: '#2f4e0b',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e0b;
$custom-light: #6b8050;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e0b",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 11
  },
  "hsl": {
    "h": 87.761,
    "s": 75.281,
    "l": 17.451
  },
  "oklch": {
    "l": 0.38535,
    "c": 0.0986,
    "h": 132
  },
  "luminance": 0.06077
}

Semantic roles & 50–950 ramp

primary
#2F4E0B
secondary
#572B8A
accent
#36F28D
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #2F4E0B

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

Preview Lab → · Contrast checker → · Palette generator →

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