#2F4417#2F4417

#2F4417 is a dark, moderate yellow-green. Relative luminance 0.048; OKLCH L 35.8% C 0.074 H 130.4°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#2F4417
RGBrgb(47, 68, 23)
HSLhsl(88, 49%, 18%)
HSVhsv(88, 66%, 27%)
CMYKcmyk(30.9%, 0%, 66.2%, 73.3%)
CIE-LABlab(26.16, -17.07, 24.13)
CIE-LCHlch(26.16, 29.56, 125.27°)
OKLaboklab(35.76% -0.0478 0.0563)
OKLCHoklch(35.76% 0.074 130.4)
XYZxyz(3.3940, 4.8004, 1.5582)
Luminance0.0480 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4417 #2C1744
analogous
#444217 #2F4417 #184417
triadic
#2F4417 #172F44 #44172F
tetradic
#2F4417 #174442 #2C1744 #441718
square
#2F4417 #174442 #2C1744 #441718
split-complementary
#2F4417 #171844 #421744
monochromatic
#101708 #101708 #2F4417 #4F7226 #6E9F36

Accessibility & contrast

On white

10.71
#2F4417 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2F4417 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4417
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4417#FFFFFF#000000##FFFFFF
##2F44171.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#473F12
Deuteranopia (green-blind)
#443D1A
Tritanopia (blue-blind)
#30413A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f4417;
/* rgb */ color: rgb(47, 68, 23);
/* oklch */ color: oklch(35.8% 0.074 130.4);
Tailwind
colors: {
  custom: {
    50: '#697856',
    500: '#2f4417',
    950: '#000000',
  },
}
SCSS
$custom: #2f4417;
$custom-light: #697856;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4417",
  "rgb": {
    "r": 47,
    "g": 68,
    "b": 23
  },
  "hsl": {
    "h": 88,
    "s": 49.451,
    "l": 17.843
  },
  "oklch": {
    "l": 0.3576,
    "c": 0.07386,
    "h": 130.4
  },
  "luminance": 0.048
}

Semantic roles & 50–950 ramp

primary
#2F4417
secondary
#593C7B
accent
#4FD98F
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2F4417

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

Preview Lab → · Contrast checker → · Palette generator →

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