#2F4F11#2F4F11

#2F4F11 is a dark, moderate yellow-green. Relative luminance 0.062; OKLCH L 38.9% C 0.096 H 133.1°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#2F4F11
RGBrgb(47, 79, 17)
HSLhsl(91, 65%, 19%)
HSVhsv(91, 78%, 31%)
CMYKcmyk(40.5%, 0%, 78.5%, 69%)
CIE-LABlab(30.00, -23.37, 31.16)
CIE-LCHlch(30.00, 38.95, 126.86°)
OKLaboklab(38.87% -0.0657 0.0702)
OKLCHoklch(38.87% 0.096 133.1)
XYZxyz(4.0694, 6.2366, 1.5196)
Luminance0.0624 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4F11 #31114F
analogous
#4E4F11 #2F4F11 #114F12
triadic
#2F4F11 #112F4F #4F112F
tetradic
#2F4F11 #114E4F #31114F #4F1211
square
#2F4F11 #114E4F #31114F #4F1211
split-complementary
#2F4F11 #12114F #4F114E
monochromatic
#0F1905 #111D06 #2F4F11 #4D811C #6BB427

Accessibility & contrast

On white

9.34
#2F4F11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2F4F11 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4F11
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4F11#FFFFFF#000000##FFFFFF
##2F4F111.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534807
Deuteranopia (green-blind)
#4E4617
Tritanopia (blue-blind)
#2F4C43
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f4f11;
/* rgb */ color: rgb(47, 79, 17);
/* oklch */ color: oklch(38.9% 0.096 133.1);
Tailwind
colors: {
  custom: {
    50: '#6b8054',
    500: '#2f4f11',
    950: '#000000',
  },
}
SCSS
$custom: #2f4f11;
$custom-light: #6b8054;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4f11",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 17
  },
  "hsl": {
    "h": 90.968,
    "s": 64.583,
    "l": 18.824
  },
  "oklch": {
    "l": 0.38871,
    "c": 0.09613,
    "h": 133.1
  },
  "luminance": 0.06237
}

Semantic roles & 50–950 ramp

primary
#2F4F11
secondary
#5F3388
accent
#40E897
background
#F6F7F4
surface
#EBEEE8
border
#C6C9C4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F4F11

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

Preview Lab → · Contrast checker → · Palette generator →

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