#2F4006#2F4006

#2F4006 is a dark, moderate yellow-green. Relative luminance 0.043; OKLCH L 34.4% C 0.082 H 125.4°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#2F4006
RGBrgb(47, 64, 6)
HSLhsl(78, 83%, 14%)
HSVhsv(78, 91%, 25%)
CMYKcmyk(26.6%, 0%, 90.6%, 74.9%)
CIE-LABlab(24.59, -16.27, 30.39)
CIE-LCHlch(24.59, 34.47, 118.15°)
OKLaboklab(34.44% -0.0474 0.0667)
OKLCHoklch(34.44% 0.082 125.4)
XYZxyz(3.0386, 4.2842, 0.8391)
Luminance0.0428 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4006 #170640
analogous
#403406 #2F4006 #124006
triadic
#2F4006 #062F40 #40062F
tetradic
#2F4006 #064034 #170640 #400612
square
#2F4006 #064034 #170640 #400612
split-complementary
#2F4006 #061240 #340640
monochromatic
#151C03 #151C03 #2F4006 #58780B #81B010

Accessibility & contrast

On white

11.31
#2F4006 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2F4006 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4006
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4006#FFFFFF#000000##FFFFFF
##2F40061.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B00
Deuteranopia (green-blind)
#423A0C
Tritanopia (blue-blind)
#323C35
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f4006;
/* rgb */ color: rgb(47, 64, 6);
/* oklch */ color: oklch(34.4% 0.082 125.4);
Tailwind
colors: {
  custom: {
    50: '#6a744c',
    500: '#2f4006',
    950: '#000000',
  },
}
SCSS
$custom: #2f4006;
$custom-light: #6a744c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4006",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 6
  },
  "hsl": {
    "h": 77.586,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.34441,
    "c": 0.08178,
    "h": 125.4
  },
  "luminance": 0.04284
}

Semantic roles & 50–950 ramp

primary
#2F4006
secondary
#3D2280
accent
#2FF96A
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #2F4006

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

Preview Lab → · Contrast checker → · Palette generator →

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