#2F4F15#2F4F15

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

Color values

HEX#2F4F15
RGBrgb(47, 79, 21)
HSLhsl(93, 58%, 20%)
HSVhsv(93, 73%, 31%)
CMYKcmyk(40.5%, 0%, 73.4%, 69%)
CIE-LABlab(30.04, -23.02, 29.39)
CIE-LCHlch(30.04, 37.33, 128.07°)
OKLaboklab(38.91% -0.0644 0.0671)
OKLCHoklch(38.91% 0.093 133.8)
XYZxyz(4.1036, 6.2503, 1.6995)
Luminance0.0625 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4F15 #35154F
analogous
#4C4F15 #2F4F15 #154F18
triadic
#2F4F15 #152F4F #4F152F
tetradic
#2F4F15 #154C4F #35154F #4F1815
square
#2F4F15 #154C4F #35154F #4F1815
split-complementary
#2F4F15 #18154F #4F154C
monochromatic
#0E1806 #121F08 #2F4F15 #4C7F22 #69B02F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F4F15#FFFFFF#000000##FFFFFF
##2F4F151.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)
#52480D
Deuteranopia (green-blind)
#4E461A
Tritanopia (blue-blind)
#2F4C43
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f4f15;
/* rgb */ color: rgb(47, 79, 21);
/* oklch */ color: oklch(38.9% 0.093 133.8);
Tailwind
colors: {
  custom: {
    50: '#6a8056',
    500: '#2f4f15',
    950: '#000000',
  },
}
SCSS
$custom: #2f4f15;
$custom-light: #6a8056;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4f15",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 21
  },
  "hsl": {
    "h": 93.103,
    "s": 58,
    "l": 19.608
  },
  "oklch": {
    "l": 0.38909,
    "c": 0.09301,
    "h": 133.8
  },
  "luminance": 0.0625
}

Semantic roles & 50–950 ramp

primary
#2F4F15
secondary
#643987
accent
#47E19C
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F4F15

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

Preview Lab → · Contrast checker → · Palette generator →

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