#2F4E12#2F4E12

#2F4E12 is a dark, moderate yellow-green. Relative luminance 0.061; OKLCH L 38.6% C 0.094 H 133.0°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#2F4E12
RGBrgb(47, 78, 18)
HSLhsl(91, 63%, 19%)
HSVhsv(91, 77%, 31%)
CMYKcmyk(39.7%, 0%, 76.9%, 69.4%)
CIE-LABlab(29.65, -22.79, 30.37)
CIE-LCHlch(29.65, 37.97, 126.88°)
OKLaboklab(38.59% -0.064 0.0687)
OKLCHoklch(38.59% 0.094 133)
XYZxyz(4.0058, 6.0966, 1.5379)
Luminance0.0610 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E12 #31124E
analogous
#4D4E12 #2F4E12 #124E13
triadic
#2F4E12 #122F4E #4E122F
tetradic
#2F4E12 #124D4E #31124E #4E1312
square
#2F4E12 #124D4E #31124E #4E1312
split-complementary
#2F4E12 #13124E #4E124D
monochromatic
#0F1906 #111C07 #2F4E12 #4D801D #6BB129

Accessibility & contrast

On white

9.46
#2F4E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4E12
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E12#FFFFFF#000000##FFFFFF
##2F4E121.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514709
Deuteranopia (green-blind)
#4D4517
Tritanopia (blue-blind)
#2F4B42
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f4e12;
/* rgb */ color: rgb(47, 78, 18);
/* oklch */ color: oklch(38.6% 0.094 133.0);
Tailwind
colors: {
  custom: {
    50: '#6b8054',
    500: '#2f4e12',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e12;
$custom-light: #6b8054;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e12",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 18
  },
  "hsl": {
    "h": 91,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.3859,
    "c": 0.09391,
    "h": 133
  },
  "luminance": 0.06097
}

Semantic roles & 50–950 ramp

primary
#2F4E12
secondary
#5F3587
accent
#42E697
background
#F6F7F4
surface
#EBEEE8
border
#C6C9C4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F4E12

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

Preview Lab → · Contrast checker → · Palette generator →

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