#2F4612#2F4612

#2F4612 is a dark, moderate yellow-green. Relative luminance 0.050; OKLCH L 36.3% C 0.082 H 130.1°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#2F4612
RGBrgb(47, 70, 18)
HSLhsl(87, 59%, 17%)
HSVhsv(87, 74%, 27%)
CMYKcmyk(32.9%, 0%, 74.3%, 72.5%)
CIE-LABlab(26.82, -18.65, 27.42)
CIE-LCHlch(26.82, 33.16, 124.23°)
OKLaboklab(36.28% -0.0527 0.0625)
OKLCHoklch(36.28% 0.082 130.1)
XYZxyz(3.4716, 5.0282, 1.3598)
Luminance0.0503 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4612 #291246
analogous
#464312 #2F4612 #154612
triadic
#2F4612 #122F46 #46122F
tetradic
#2F4612 #124643 #291246 #461215
square
#2F4612 #124643 #291246 #461215
split-complementary
#2F4612 #121546 #431246
monochromatic
#101806 #101806 #2F4612 #50771F #70A72B

Accessibility & contrast

On white

10.47
#2F4612 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2F4612 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4612
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4612#FFFFFF#000000##FFFFFF
##2F46121.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A400B
Deuteranopia (green-blind)
#463F16
Tritanopia (blue-blind)
#30433B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f4612;
/* rgb */ color: rgb(47, 70, 18);
/* oklch */ color: oklch(36.3% 0.082 130.1);
Tailwind
colors: {
  custom: {
    50: '#6a7953',
    500: '#2f4612',
    950: '#000000',
  },
}
SCSS
$custom: #2f4612;
$custom-light: #6a7953;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4612",
  "rgb": {
    "r": 47,
    "g": 70,
    "b": 18
  },
  "hsl": {
    "h": 86.538,
    "s": 59.091,
    "l": 17.255
  },
  "oklch": {
    "l": 0.36277,
    "c": 0.08178,
    "h": 130.1
  },
  "luminance": 0.05028
}

Semantic roles & 50–950 ramp

primary
#2F4612
secondary
#56357F
accent
#46E28B
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2F4612

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

Preview Lab → · Contrast checker → · Palette generator →

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