#2F4005#2F4005

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

Color values

HEX#2F4005
RGBrgb(47, 64, 5)
HSLhsl(77, 86%, 14%)
HSVhsv(77, 92%, 25%)
CMYKcmyk(26.6%, 0%, 92.2%, 74.9%)
CIE-LABlab(24.58, -16.33, 30.79)
CIE-LCHlch(24.58, 34.86, 117.94°)
OKLaboklab(34.43% -0.0477 0.0673)
OKLCHoklch(34.43% 0.082 125.3)
XYZxyz(3.0331, 4.2820, 0.8103)
Luminance0.0428 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4005 #160540
analogous
#403305 #2F4005 #114005
triadic
#2F4005 #052F40 #40052F
tetradic
#2F4005 #054033 #160540 #400511
square
#2F4005 #054033 #160540 #400511
split-complementary
#2F4005 #051140 #330540
monochromatic
#151C02 #151C02 #2F4005 #597909 #82B20E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F4005#FFFFFF#000000##FFFFFF
##2F40051.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)
#423A0B
Tritanopia (blue-blind)
#323C35
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f4005;
/* rgb */ color: rgb(47, 64, 5);
/* oklch */ color: oklch(34.4% 0.082 125.3);
Tailwind
colors: {
  custom: {
    50: '#6a744b',
    500: '#2f4005',
    950: '#000000',
  },
}
SCSS
$custom: #2f4005;
$custom-light: #6a744b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4005",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 5
  },
  "hsl": {
    "h": 77.288,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.34433,
    "c": 0.08249,
    "h": 125.3
  },
  "luminance": 0.04282
}

Semantic roles & 50–950 ramp

primary
#2F4005
secondary
#3C2081
accent
#2CFC68
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #2F4005

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

Preview Lab → · Contrast checker → · Palette generator →

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