#2F4F17#2F4F17

#2F4F17 is a dark, moderate yellow-green. Relative luminance 0.063; OKLCH L 38.9% C 0.091 H 134.2°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#2F4F17
RGBrgb(47, 79, 23)
HSLhsl(94, 55%, 20%)
HSVhsv(94, 71%, 31%)
CMYKcmyk(40.5%, 0%, 70.9%, 69%)
CIE-LABlab(30.05, -22.83, 28.44)
CIE-LCHlch(30.05, 36.47, 128.75°)
OKLaboklab(38.93% -0.0637 0.0654)
OKLCHoklch(38.93% 0.091 134.2)
XYZxyz(4.1228, 6.2580, 1.8011)
Luminance0.0626 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4F17 #37174F
analogous
#4B4F17 #2F4F17 #174F1B
triadic
#2F4F17 #172F4F #4F172F
tetradic
#2F4F17 #174B4F #37174F #4F1B17
square
#2F4F17 #174B4F #37174F #4F1B17
split-complementary
#2F4F17 #1B174F #4F174B
monochromatic
#0E1807 #132009 #2F4F17 #4B7E25 #67AE33

Accessibility & contrast

On white

9.33
#2F4F17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4F17
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4F17#FFFFFF#000000##FFFFFF
##2F4F171.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f4f17;
/* rgb */ color: rgb(47, 79, 23);
/* oklch */ color: oklch(38.9% 0.091 134.2);
Tailwind
colors: {
  custom: {
    50: '#6a8057',
    500: '#2f4f17',
    950: '#000000',
  },
}
SCSS
$custom: #2f4f17;
$custom-light: #6a8057;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4f17",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 23
  },
  "hsl": {
    "h": 94.286,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.38931,
    "c": 0.09129,
    "h": 134.2
  },
  "luminance": 0.06258
}

Semantic roles & 50–950 ramp

primary
#2F4F17
secondary
#663C86
accent
#4ADE9F
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F4F17

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

Preview Lab → · Contrast checker → · Palette generator →

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