#2F3812#2F3812

#2F3812 is a dark, muted yellow-green. Relative luminance 0.035; OKLCH L 32.3% C 0.060 H 121.0°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#2F3812
RGBrgb(47, 56, 18)
HSLhsl(74, 51%, 15%)
HSVhsv(74, 68%, 22%)
CMYKcmyk(16.1%, 0%, 67.9%, 78%)
CIE-LABlab(21.86, -10.70, 22.02)
CIE-LCHlch(21.86, 24.49, 115.92°)
OKLaboklab(32.27% -0.0307 0.0511)
OKLCHoklch(32.27% 0.06 121)
XYZxyz(2.6957, 3.4764, 1.1011)
Luminance0.0348 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3812 #1B1238
analogous
#382E12 #2F3812 #1C3812
triadic
#2F3812 #122F38 #38122F
tetradic
#2F3812 #12382E #1B1238 #38121C
square
#2F3812 #12382E #1B1238 #38121C
split-complementary
#2F3812 #121C38 #2E1238
monochromatic
#131707 #131707 #2F3812 #566621 #7D9530

Accessibility & contrast

On white

12.39
#2F3812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2F3812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3812
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3812#FFFFFF#000000##FFFFFF
##2F38121.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C340E
Deuteranopia (green-blind)
#3B3414
Tritanopia (blue-blind)
#323530
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f3812;
/* rgb */ color: rgb(47, 56, 18);
/* oklch */ color: oklch(32.3% 0.060 121.0);
Tailwind
colors: {
  custom: {
    50: '#696e51',
    500: '#2f3812',
    950: '#000000',
  },
}
SCSS
$custom: #2f3812;
$custom-light: #696e51;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3812",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 18
  },
  "hsl": {
    "h": 74.211,
    "s": 51.351,
    "l": 14.51
  },
  "oklch": {
    "l": 0.32268,
    "c": 0.05963,
    "h": 121
  },
  "luminance": 0.03476
}

Semantic roles & 50–950 ramp

primary
#2F3812
secondary
#433571
accent
#4DDB6F
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060702
muted
#7A7A78

Preview Lab

Preview with #2F3812

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

Preview Lab → · Contrast checker → · Palette generator →

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