#2F4E18#2F4E18

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

Color values

HEX#2F4E18
RGBrgb(47, 78, 24)
HSLhsl(94, 53%, 20%)
HSVhsv(94, 69%, 31%)
CMYKcmyk(39.7%, 0%, 69.2%, 69.4%)
CIE-LABlab(29.71, -22.22, 27.57)
CIE-LCHlch(29.71, 35.41, 128.87°)
OKLaboklab(38.65% -0.0619 0.0637)
OKLCHoklch(38.65% 0.089 134.2)
XYZxyz(4.0615, 6.1189, 1.8310)
Luminance0.0612 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E18 #37184E
analogous
#4A4E18 #2F4E18 #184E1C
triadic
#2F4E18 #182F4E #4E182F
tetradic
#2F4E18 #184A4E #37184E #4E1C18
square
#2F4E18 #184A4E #37184E #4E1C18
split-complementary
#2F4E18 #1C184E #4E184A
monochromatic
#0E1707 #131F0A #2F4E18 #4B7D26 #67AC35

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F4E18#FFFFFF#000000##FFFFFF
##2F4E181.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f4e18;
/* rgb */ color: rgb(47, 78, 24);
/* oklch */ color: oklch(38.7% 0.089 134.2);
Tailwind
colors: {
  custom: {
    50: '#6a8057',
    500: '#2f4e18',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e18;
$custom-light: #6a8057;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e18",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 24
  },
  "hsl": {
    "h": 94.444,
    "s": 52.941,
    "l": 20
  },
  "oklch": {
    "l": 0.38653,
    "c": 0.08885,
    "h": 134.2
  },
  "luminance": 0.06119
}

Semantic roles & 50–950 ramp

primary
#2F4E18
secondary
#663D85
accent
#4BDC9F
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F4E18

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

Preview Lab → · Contrast checker → · Palette generator →

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