#2F4E1B#2F4E1B

#2F4E1B is a dark, moderate yellow-green. Relative luminance 0.061; OKLCH L 38.7% C 0.086 H 134.9°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#2F4E1B
RGBrgb(47, 78, 27)
HSLhsl(96, 49%, 21%)
HSVhsv(96, 65%, 31%)
CMYKcmyk(39.7%, 0%, 65.4%, 69.4%)
CIE-LABlab(29.74, -21.89, 26.06)
CIE-LCHlch(29.74, 34.03, 130.04°)
OKLaboklab(38.69% -0.0607 0.0609)
OKLCHoklch(38.69% 0.086 134.9)
XYZxyz(4.0944, 6.1321, 2.0046)
Luminance0.0613 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E1B #3A1B4E
analogous
#484E1B #2F4E1B #1B4E21
triadic
#2F4E1B #1B2F4E #4E1B2F
tetradic
#2F4E1B #1B484E #3A1B4E #4E211B
square
#2F4E1B #1B484E #3A1B4E #4E211B
split-complementary
#2F4E1B #211B4E #4E1B48
monochromatic
#0E1708 #14210B #2F4E1B #4A7B2B #66A93A

Accessibility & contrast

On white

9.43
#2F4E1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2F4E1B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E1B
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E1B#FFFFFF#000000##FFFFFF
##2F4E1B1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514815
Deuteranopia (green-blind)
#4D451F
Tritanopia (blue-blind)
#2F4B43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f4e1b;
/* rgb */ color: rgb(47, 78, 27);
/* oklch */ color: oklch(38.7% 0.086 134.9);
Tailwind
colors: {
  custom: {
    50: '#6a8059',
    500: '#2f4e1b',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e1b;
$custom-light: #6a8059;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e1b",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 27
  },
  "hsl": {
    "h": 96.471,
    "s": 48.571,
    "l": 20.588
  },
  "oklch": {
    "l": 0.38691,
    "c": 0.086,
    "h": 134.9
  },
  "luminance": 0.06132
}

Semantic roles & 50–950 ramp

primary
#2F4E1B
secondary
#6A4184
accent
#50D8A3
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A04
muted
#7A7C79

Preview Lab

Preview with #2F4E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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