#2F4017#2F4017

#2F4017 is a dark, moderate yellow-green. Relative luminance 0.043; OKLCH L 34.6% C 0.067 H 128.3°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#2F4017
RGBrgb(47, 64, 23)
HSLhsl(85, 47%, 17%)
HSVhsv(85, 64%, 25%)
CMYKcmyk(26.6%, 0%, 64.1%, 74.9%)
CIE-LABlab(24.74, -14.84, 22.51)
CIE-LCHlch(24.74, 26.96, 123.38°)
OKLaboklab(34.61% -0.0417 0.0528)
OKLCHoklch(34.61% 0.067 128.3)
XYZxyz(3.1603, 4.3329, 1.4803)
Luminance0.0433 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4017 #281740
analogous
#403D17 #2F4017 #1B4017
triadic
#2F4017 #172F40 #40172F
tetradic
#2F4017 #17403D #281740 #40171B
square
#2F4017 #17403D #281740 #40171B
split-complementary
#2F4017 #171B40 #3D1740
monochromatic
#111708 #111708 #2F4017 #506D27 #719A37

Accessibility & contrast

On white

11.25
#2F4017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2F4017 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4017
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4017#FFFFFF#000000##FFFFFF
##2F40171.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433B13
Deuteranopia (green-blind)
#413A1A
Tritanopia (blue-blind)
#313D37
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f4017;
/* rgb */ color: rgb(47, 64, 23);
/* oklch */ color: oklch(34.6% 0.067 128.3);
Tailwind
colors: {
  custom: {
    50: '#697555',
    500: '#2f4017',
    950: '#000000',
  },
}
SCSS
$custom: #2f4017;
$custom-light: #697555;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4017",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 23
  },
  "hsl": {
    "h": 84.878,
    "s": 47.126,
    "l": 17.059
  },
  "oklch": {
    "l": 0.34614,
    "c": 0.06726,
    "h": 128.3
  },
  "luminance": 0.04333
}

Semantic roles & 50–950 ramp

primary
#2F4017
secondary
#543C77
accent
#51D788
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060803
muted
#7A7B78

Preview Lab

Preview with #2F4017

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

Preview Lab → · Contrast checker → · Palette generator →

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