#2F4004#2F4004

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

Color values

HEX#2F4004
RGBrgb(47, 64, 4)
HSLhsl(77, 88%, 13%)
HSVhsv(77, 94%, 25%)
CMYKcmyk(26.6%, 0%, 93.8%, 74.9%)
CIE-LABlab(24.58, -16.40, 31.20)
CIE-LCHlch(24.58, 35.24, 117.73°)
OKLaboklab(34.42% -0.0479 0.068)
OKLCHoklch(34.42% 0.083 125.2)
XYZxyz(3.0276, 4.2799, 0.7814)
Luminance0.0428 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4004 #150440
analogous
#403304 #2F4004 #114004
triadic
#2F4004 #042F40 #40042F
tetradic
#2F4004 #044033 #150440 #400411
square
#2F4004 #044033 #150440 #400411
split-complementary
#2F4004 #041140 #330440
monochromatic
#151D02 #151D02 #2F4004 #597A08 #84B30B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #2f4004;
/* rgb */ color: rgb(47, 64, 4);
/* oklch */ color: oklch(34.4% 0.083 125.2);
Tailwind
colors: {
  custom: {
    50: '#6a744b',
    500: '#2f4004',
    950: '#000000',
  },
}
SCSS
$custom: #2f4004;
$custom-light: #6a744b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4004",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 4
  },
  "hsl": {
    "h": 77,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.34425,
    "c": 0.08322,
    "h": 125.2
  },
  "luminance": 0.0428
}

Semantic roles & 50–950 ramp

primary
#2F4004
secondary
#3B1F81
accent
#29FE66
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #2F4004

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

Preview Lab → · Contrast checker → · Palette generator →

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