#2F4B0C#2F4B0C

#2F4B0C is a dark, moderate yellow-green. Relative luminance 0.057; OKLCH L 37.7% C 0.094 H 131.1°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#2F4B0C
RGBrgb(47, 75, 12)
HSLhsl(87, 72%, 17%)
HSVhsv(87, 84%, 29%)
CMYKcmyk(37.3%, 0%, 84%, 70.6%)
CIE-LABlab(28.55, -21.72, 31.77)
CIE-LCHlch(28.55, 38.48, 124.36°)
OKLaboklab(37.67% -0.0616 0.0706)
OKLCHoklch(37.67% 0.094 131.1)
XYZxyz(3.7547, 5.6629, 1.2430)
Luminance0.0566 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4B0C #280C4B
analogous
#4B480C #2F4B0C #0F4B0C
triadic
#2F4B0C #0C2F4B #4B0C2F
tetradic
#2F4B0C #0C4B48 #280C4B #4B0C0F
square
#2F4B0C #0C4B48 #280C4B #4B0C0F
split-complementary
#2F4B0C #0C0F4B #480C4B
monochromatic
#111A04 #111A04 #2F4B0C #508014 #71B51D

Accessibility & contrast

On white

9.85
#2F4B0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2F4B0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4B0C
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4B0C#FFFFFF#000000##FFFFFF
##2F4B0C1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4501
Deuteranopia (green-blind)
#4B4312
Tritanopia (blue-blind)
#30473F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f4b0c;
/* rgb */ color: rgb(47, 75, 12);
/* oklch */ color: oklch(37.7% 0.094 131.1);
Tailwind
colors: {
  custom: {
    50: '#6b7d50',
    500: '#2f4b0c',
    950: '#000000',
  },
}
SCSS
$custom: #2f4b0c;
$custom-light: #6b7d50;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4b0c",
  "rgb": {
    "r": 47,
    "g": 75,
    "b": 12
  },
  "hsl": {
    "h": 86.667,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.37671,
    "c": 0.09372,
    "h": 131.1
  },
  "luminance": 0.05663
}

Semantic roles & 50–950 ramp

primary
#2F4B0C
secondary
#542C87
accent
#39EF8A
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #2F4B0C

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

Preview Lab → · Contrast checker → · Palette generator →

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