#2F4312#2F4312

#2F4312 is a dark, moderate yellow-green. Relative luminance 0.047; OKLCH L 35.4% C 0.077 H 128.7°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#2F4312
RGBrgb(47, 67, 18)
HSLhsl(84, 58%, 17%)
HSVhsv(84, 73%, 26%)
CMYKcmyk(29.9%, 0%, 73.1%, 73.7%)
CIE-LABlab(25.75, -17.03, 26.29)
CIE-LCHlch(25.75, 31.32, 122.94°)
OKLaboklab(35.41% -0.0483 0.0601)
OKLCHoklch(35.41% 0.077 128.7)
XYZxyz(3.2886, 4.6622, 1.2988)
Luminance0.0466 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4312 #261243
analogous
#433F12 #2F4312 #174312
triadic
#2F4312 #122F43 #43122F
tetradic
#2F4312 #12433F #261243 #431217
square
#2F4312 #12433F #261243 #431217
split-complementary
#2F4312 #121743 #3F1243
monochromatic
#111806 #111806 #2F4312 #51731F #73A32C

Accessibility & contrast

On white

10.87
#2F4312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2F4312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4312
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4312#FFFFFF#000000##FFFFFF
##2F43121.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#473E0C
Deuteranopia (green-blind)
#443D16
Tritanopia (blue-blind)
#314039
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f4312;
/* rgb */ color: rgb(47, 67, 18);
/* oklch */ color: oklch(35.4% 0.077 128.7);
Tailwind
colors: {
  custom: {
    50: '#697753',
    500: '#2f4312',
    950: '#000000',
  },
}
SCSS
$custom: #2f4312;
$custom-light: #697753;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4312",
  "rgb": {
    "r": 47,
    "g": 67,
    "b": 18
  },
  "hsl": {
    "h": 84.49,
    "s": 57.647,
    "l": 16.667
  },
  "oklch": {
    "l": 0.35412,
    "c": 0.07711,
    "h": 128.7
  },
  "luminance": 0.04662
}

Semantic roles & 50–950 ramp

primary
#2F4312
secondary
#52357C
accent
#47E186
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2F4312

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

Preview Lab → · Contrast checker → · Palette generator →

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