#2F4107#2F4107

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

Color values

HEX#2F4107
RGBrgb(47, 65, 7)
HSLhsl(79, 81%, 14%)
HSVhsv(79, 89%, 25%)
CMYKcmyk(27.7%, 0%, 89.2%, 74.5%)
CIE-LABlab(24.95, -16.75, 30.34)
CIE-LCHlch(24.95, 34.65, 118.91°)
OKLaboklab(34.74% -0.0486 0.0667)
OKLCHoklch(34.74% 0.083 126.1)
XYZxyz(3.1010, 4.4002, 0.8869)
Luminance0.0440 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4107 #190741
analogous
#413607 #2F4107 #124107
triadic
#2F4107 #072F41 #41072F
tetradic
#2F4107 #074136 #190741 #410712
square
#2F4107 #074136 #190741 #410712
split-complementary
#2F4107 #071241 #360741
monochromatic
#141C03 #141C03 #2F4107 #57780D #7FB013

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F4107#FFFFFF#000000##FFFFFF
##2F41071.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)
#433B0D
Tritanopia (blue-blind)
#313D36
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f4107;
/* rgb */ color: rgb(47, 65, 7);
/* oklch */ color: oklch(34.7% 0.083 126.1);
Tailwind
colors: {
  custom: {
    50: '#6a754c',
    500: '#2f4107',
    950: '#000000',
  },
}
SCSS
$custom: #2f4107;
$custom-light: #6a754c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4107",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 7
  },
  "hsl": {
    "h": 78.621,
    "s": 80.556,
    "l": 14.118
  },
  "oklch": {
    "l": 0.34737,
    "c": 0.0825,
    "h": 126.1
  },
  "luminance": 0.044
}

Semantic roles & 50–950 ramp

primary
#2F4107
secondary
#402480
accent
#31F76E
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #2F4107

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

Preview Lab → · Contrast checker → · Palette generator →

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