#2F4104#2F4104

#2F4104 is a dark, moderate yellow-green. Relative luminance 0.044; OKLCH L 34.7% C 0.085 H 125.8°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#2F4104
RGBrgb(47, 65, 4)
HSLhsl(78, 88%, 14%)
HSVhsv(78, 94%, 25%)
CMYKcmyk(27.7%, 0%, 93.8%, 74.5%)
CIE-LABlab(24.93, -16.95, 31.54)
CIE-LCHlch(24.93, 35.80, 118.25°)
OKLaboklab(34.71% -0.0494 0.0687)
OKLCHoklch(34.71% 0.085 125.8)
XYZxyz(3.0845, 4.3936, 0.8004)
Luminance0.0439 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4104 #160441
analogous
#413404 #2F4104 #104104
triadic
#2F4104 #042F41 #41042F
tetradic
#2F4104 #044134 #160441 #410410
square
#2F4104 #044134 #160441 #410410
split-complementary
#2F4104 #041041 #340441
monochromatic
#151D02 #151D02 #2F4104 #597B08 #82B40B

Accessibility & contrast

On white

11.18
#2F4104 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2F4104 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4104
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4104#FFFFFF#000000##FFFFFF
##2F41041.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453C00
Deuteranopia (green-blind)
#433B0A
Tritanopia (blue-blind)
#323D36
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f4104;
/* rgb */ color: rgb(47, 65, 4);
/* oklch */ color: oklch(34.7% 0.085 125.8);
Tailwind
colors: {
  custom: {
    50: '#6a754b',
    500: '#2f4104',
    950: '#000000',
  },
}
SCSS
$custom: #2f4104;
$custom-light: #6a754b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4104",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 4
  },
  "hsl": {
    "h": 77.705,
    "s": 88.406,
    "l": 13.529
  },
  "oklch": {
    "l": 0.34714,
    "c": 0.08462,
    "h": 125.8
  },
  "luminance": 0.04394
}

Semantic roles & 50–950 ramp

primary
#2F4104
secondary
#3C1F82
accent
#29FF68
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #2F4104

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

Preview Lab → · Contrast checker → · Palette generator →

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