#2F4108#2F4108

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

Color values

HEX#2F4108
RGBrgb(47, 65, 8)
HSLhsl(79, 78%, 14%)
HSVhsv(79, 88%, 25%)
CMYKcmyk(27.7%, 0%, 87.7%, 74.5%)
CIE-LABlab(24.96, -16.69, 29.93)
CIE-LCHlch(24.96, 34.27, 119.14°)
OKLaboklab(34.74% -0.0483 0.066)
OKLCHoklch(34.74% 0.082 126.2)
XYZxyz(3.1064, 4.4024, 0.9158)
Luminance0.0440 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4108 #1A0841
analogous
#413708 #2F4108 #134108
triadic
#2F4108 #082F41 #41082F
tetradic
#2F4108 #084137 #1A0841 #410813
square
#2F4108 #084137 #1A0841 #410813
split-complementary
#2F4108 #081341 #370841
monochromatic
#141B03 #141B03 #2F4108 #56770F #7EAE15

Accessibility & contrast

On white

11.17
#2F4108 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4108
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4108#FFFFFF#000000##FFFFFF
##2F41081.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f4108;
/* rgb */ color: rgb(47, 65, 8);
/* oklch */ color: oklch(34.7% 0.082 126.2);
Tailwind
colors: {
  custom: {
    50: '#6a754d',
    500: '#2f4108',
    950: '#000000',
  },
}
SCSS
$custom: #2f4108;
$custom-light: #6a754d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4108",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 8
  },
  "hsl": {
    "h": 78.947,
    "s": 78.082,
    "l": 14.314
  },
  "oklch": {
    "l": 0.34745,
    "c": 0.08181,
    "h": 126.2
  },
  "luminance": 0.04402
}

Semantic roles & 50–950 ramp

primary
#2F4108
secondary
#42257F
accent
#33F570
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #2F4108

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

Preview Lab → · Contrast checker → · Palette generator →

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