#2F4E1A#2F4E1A

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

Color values

HEX#2F4E1A
RGBrgb(47, 78, 26)
HSLhsl(96, 50%, 20%)
HSVhsv(96, 67%, 31%)
CMYKcmyk(39.7%, 0%, 66.7%, 69.4%)
CIE-LABlab(29.73, -22.01, 26.57)
CIE-LCHlch(29.73, 34.50, 129.64°)
OKLaboklab(38.68% -0.0611 0.0619)
OKLCHoklch(38.68% 0.087 134.7)
XYZxyz(4.0830, 6.1275, 1.9447)
Luminance0.0613 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E1A #391A4E
analogous
#494E1A #2F4E1A #1A4E1F
triadic
#2F4E1A #1A2F4E #4E1A2F
tetradic
#2F4E1A #1A494E #391A4E #4E1F1A
square
#2F4E1A #1A494E #391A4E #4E1F1A
split-complementary
#2F4E1A #1F1A4E #4E1A49
monochromatic
#0E1708 #13200B #2F4E1A #4B7C29 #66AA39

Accessibility & contrast

On white

9.44
#2F4E1A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4E1A
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E1A#FFFFFF#000000##FFFFFF
##2F4E1A1.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f4e1a;
/* rgb */ color: rgb(47, 78, 26);
/* oklch */ color: oklch(38.7% 0.087 134.7);
Tailwind
colors: {
  custom: {
    50: '#6a8059',
    500: '#2f4e1a',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e1a;
$custom-light: #6a8059;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e1a",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 26
  },
  "hsl": {
    "h": 95.769,
    "s": 50,
    "l": 20.392
  },
  "oklch": {
    "l": 0.38678,
    "c": 0.08698,
    "h": 134.7
  },
  "luminance": 0.06128
}

Semantic roles & 50–950 ramp

primary
#2F4E1A
secondary
#684084
accent
#4EDAA1
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F4E1A

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

Preview Lab → · Contrast checker → · Palette generator →

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