#2F4217#2F4217

#2F4217 is a dark, moderate yellow-green. Relative luminance 0.046; OKLCH L 35.2% C 0.071 H 129.4°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#2F4217
RGBrgb(47, 66, 23)
HSLhsl(87, 48%, 17%)
HSVhsv(87, 65%, 26%)
CMYKcmyk(28.8%, 0%, 65.2%, 74.1%)
CIE-LABlab(25.45, -15.96, 23.32)
CIE-LCHlch(25.45, 28.26, 124.38°)
OKLaboklab(35.19% -0.0448 0.0545)
OKLCHoklch(35.19% 0.071 129.4)
XYZxyz(3.2751, 4.5626, 1.5186)
Luminance0.0456 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4217 #2A1742
analogous
#424017 #2F4217 #194217
triadic
#2F4217 #172F42 #42172F
tetradic
#2F4217 #174240 #2A1742 #421719
square
#2F4217 #174240 #2A1742 #421719
split-complementary
#2F4217 #171942 #401742
monochromatic
#101708 #101708 #2F4217 #4F6F27 #709D37

Accessibility & contrast

On white

10.98
#2F4217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2F4217 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4217
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4217#FFFFFF#000000##FFFFFF
##2F42171.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453D13
Deuteranopia (green-blind)
#433C1A
Tritanopia (blue-blind)
#303F39
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f4217;
/* rgb */ color: rgb(47, 66, 23);
/* oklch */ color: oklch(35.2% 0.071 129.4);
Tailwind
colors: {
  custom: {
    50: '#697656',
    500: '#2f4217',
    950: '#000000',
  },
}
SCSS
$custom: #2f4217;
$custom-light: #697656;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4217",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 23
  },
  "hsl": {
    "h": 86.512,
    "s": 48.315,
    "l": 17.451
  },
  "oklch": {
    "l": 0.35186,
    "c": 0.07058,
    "h": 129.4
  },
  "luminance": 0.04563
}

Semantic roles & 50–950 ramp

primary
#2F4217
secondary
#573C79
accent
#50D88C
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060803
muted
#7A7B78

Preview Lab

Preview with #2F4217

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

Preview Lab → · Contrast checker → · Palette generator →

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