#2F4912#2F4912

#2F4912 is a dark, moderate yellow-green. Relative luminance 0.054; OKLCH L 37.1% C 0.086 H 131.3°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#2F4912
RGBrgb(47, 73, 18)
HSLhsl(88, 60%, 18%)
HSVhsv(88, 75%, 29%)
CMYKcmyk(35.6%, 0%, 75.3%, 71.4%)
CIE-LABlab(27.88, -20.23, 28.54)
CIE-LCHlch(27.88, 34.98, 125.34°)
OKLaboklab(37.14% -0.057 0.0649)
OKLCHoklch(37.14% 0.086 131.3)
XYZxyz(3.6640, 5.4130, 1.4239)
Luminance0.0541 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4912 #2C1249
analogous
#494712 #2F4912 #134912
triadic
#2F4912 #122F49 #49122F
tetradic
#2F4912 #124947 #2C1249 #491213
square
#2F4912 #124947 #2C1249 #491213
split-complementary
#2F4912 #121349 #471249
monochromatic
#101906 #101906 #2F4912 #4F7A1E #6EAB2A

Accessibility & contrast

On white

10.08
#2F4912 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2F4912 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4912
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4912#FFFFFF#000000##FFFFFF
##2F49121.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C430A
Deuteranopia (green-blind)
#494117
Tritanopia (blue-blind)
#30463E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f4912;
/* rgb */ color: rgb(47, 73, 18);
/* oklch */ color: oklch(37.1% 0.086 131.3);
Tailwind
colors: {
  custom: {
    50: '#6a7c53',
    500: '#2f4912',
    950: '#000000',
  },
}
SCSS
$custom: #2f4912;
$custom-light: #6a7c53;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4912",
  "rgb": {
    "r": 47,
    "g": 73,
    "b": 18
  },
  "hsl": {
    "h": 88.364,
    "s": 60.44,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37143,
    "c": 0.08638,
    "h": 131.3
  },
  "luminance": 0.05413
}

Semantic roles & 50–950 ramp

primary
#2F4912
secondary
#593582
accent
#44E490
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070903
muted
#7A7B78

Preview Lab

Preview with #2F4912

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

Preview Lab → · Contrast checker → · Palette generator →

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