#2F4918#2F4918

#2F4918 is a dark, moderate yellow-green. Relative luminance 0.054; OKLCH L 37.2% C 0.081 H 132.7°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#2F4918
RGBrgb(47, 73, 24)
HSLhsl(92, 51%, 19%)
HSVhsv(92, 67%, 29%)
CMYKcmyk(35.6%, 0%, 67.1%, 71.4%)
CIE-LABlab(27.94, -19.64, 25.60)
CIE-LCHlch(27.94, 32.27, 127.49°)
OKLaboklab(37.21% -0.0548 0.0595)
OKLCHoklch(37.21% 0.081 132.7)
XYZxyz(3.7196, 5.4352, 1.7171)
Luminance0.0544 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4918 #321849
analogous
#484918 #2F4918 #18491A
triadic
#2F4918 #182F49 #49182F
tetradic
#2F4918 #184849 #321849 #491A18
square
#2F4918 #184849 #321849 #491A18
split-complementary
#2F4918 #1A1849 #491848
monochromatic
#0F1708 #111B09 #2F4918 #4D7727 #6AA536

Accessibility & contrast

On white

10.06
#2F4918 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2F4918 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4918
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4918#FFFFFF#000000##FFFFFF
##2F49181.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C4313
Deuteranopia (green-blind)
#48411C
Tritanopia (blue-blind)
#2F463F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f4918;
/* rgb */ color: rgb(47, 73, 24);
/* oklch */ color: oklch(37.2% 0.081 132.7);
Tailwind
colors: {
  custom: {
    50: '#6a7c57',
    500: '#2f4918',
    950: '#000000',
  },
}
SCSS
$custom: #2f4918;
$custom-light: #6a7c57;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4918",
  "rgb": {
    "r": 47,
    "g": 73,
    "b": 24
  },
  "hsl": {
    "h": 91.837,
    "s": 50.515,
    "l": 19.02
  },
  "oklch": {
    "l": 0.37211,
    "c": 0.08095,
    "h": 132.7
  },
  "luminance": 0.05435
}

Semantic roles & 50–950 ramp

primary
#2F4918
secondary
#603D80
accent
#4EDA98
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2F4918

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

Preview Lab → · Contrast checker → · Palette generator →

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