#2F4D18#2F4D18

#2F4D18 is a dark, moderate yellow-green. Relative luminance 0.060; OKLCH L 38.4% C 0.087 H 133.9°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#2F4D18
RGBrgb(47, 77, 24)
HSLhsl(94, 52%, 20%)
HSVhsv(94, 69%, 30%)
CMYKcmyk(39%, 0%, 68.8%, 69.8%)
CIE-LABlab(29.36, -21.72, 27.18)
CIE-LCHlch(29.36, 34.79, 128.62°)
OKLaboklab(38.37% -0.0605 0.0629)
OKLCHoklch(38.37% 0.087 133.9)
XYZxyz(3.9910, 5.9779, 1.8075)
Luminance0.0598 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4D18 #36184D
analogous
#4A4D18 #2F4D18 #184D1B
triadic
#2F4D18 #182F4D #4D182F
tetradic
#2F4D18 #184A4D #36184D #4D1B18
square
#2F4D18 #184A4D #36184D #4D1B18
split-complementary
#2F4D18 #1B184D #4D184A
monochromatic
#0E1707 #131E09 #2F4D18 #4B7C27 #68AA35

Accessibility & contrast

On white

9.56
#2F4D18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2F4D18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4D18
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4D18#FFFFFF#000000##FFFFFF
##2F4D181.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504712
Deuteranopia (green-blind)
#4C441C
Tritanopia (blue-blind)
#2F4A42
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f4d18;
/* rgb */ color: rgb(47, 77, 24);
/* oklch */ color: oklch(38.4% 0.087 133.9);
Tailwind
colors: {
  custom: {
    50: '#6a7f57',
    500: '#2f4d18',
    950: '#000000',
  },
}
SCSS
$custom: #2f4d18;
$custom-light: #6a7f57;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4d18",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 24
  },
  "hsl": {
    "h": 93.962,
    "s": 52.475,
    "l": 19.804
  },
  "oklch": {
    "l": 0.38365,
    "c": 0.08729,
    "h": 133.9
  },
  "luminance": 0.05978
}

Semantic roles & 50–950 ramp

primary
#2F4D18
secondary
#653D84
accent
#4CDC9D
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F4D18

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

Preview Lab → · Contrast checker → · Palette generator →

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