#2F4512#2F4512

#2F4512 is a dark, moderate yellow-green. Relative luminance 0.049; OKLCH L 36.0% C 0.080 H 129.7°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#2F4512
RGBrgb(47, 69, 18)
HSLhsl(86, 59%, 17%)
HSVhsv(86, 74%, 27%)
CMYKcmyk(31.9%, 0%, 73.9%, 72.9%)
CIE-LABlab(26.46, -18.12, 27.04)
CIE-LCHlch(26.46, 32.55, 123.82°)
OKLaboklab(35.99% -0.0512 0.0617)
OKLCHoklch(35.99% 0.08 129.7)
XYZxyz(3.4096, 4.9042, 1.3391)
Luminance0.0490 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4512 #281245
analogous
#454212 #2F4512 #164512
triadic
#2F4512 #122F45 #45122F
tetradic
#2F4512 #124542 #281245 #451216
square
#2F4512 #124542 #281245 #451216
split-complementary
#2F4512 #121645 #421245
monochromatic
#111806 #111806 #2F4512 #50761F #71A62B

Accessibility & contrast

On white

10.60
#2F4512 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2F4512 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4512
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4512#FFFFFF#000000##FFFFFF
##2F45121.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49400B
Deuteranopia (green-blind)
#453E16
Tritanopia (blue-blind)
#30423B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f4512;
/* rgb */ color: rgb(47, 69, 18);
/* oklch */ color: oklch(36.0% 0.080 129.7);
Tailwind
colors: {
  custom: {
    50: '#6a7853',
    500: '#2f4512',
    950: '#000000',
  },
}
SCSS
$custom: #2f4512;
$custom-light: #6a7853;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4512",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 18
  },
  "hsl": {
    "h": 85.882,
    "s": 58.621,
    "l": 17.059
  },
  "oklch": {
    "l": 0.35988,
    "c": 0.08023,
    "h": 129.7
  },
  "luminance": 0.04904
}

Semantic roles & 50–950 ramp

primary
#2F4512
secondary
#54357E
accent
#46E289
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2F4512

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

Preview Lab → · Contrast checker → · Palette generator →

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