#2F4C0F#2F4C0F

#2F4C0F is a dark, moderate yellow-green. Relative luminance 0.058; OKLCH L 38.0% C 0.093 H 131.9°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#2F4C0F
RGBrgb(47, 76, 15)
HSLhsl(89, 67%, 18%)
HSVhsv(89, 80%, 30%)
CMYKcmyk(38.2%, 0%, 80.3%, 70.2%)
CIE-LABlab(28.92, -22.02, 30.93)
CIE-LCHlch(28.92, 37.97, 125.45°)
OKLaboklab(37.98% -0.0622 0.0694)
OKLCHoklch(37.98% 0.093 131.9)
XYZxyz(3.8429, 5.8076, 1.3703)
Luminance0.0581 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4C0F #2C0F4C
analogous
#4C4A0F #2F4C0F #104C0F
triadic
#2F4C0F #0F2F4C #4C0F2F
tetradic
#2F4C0F #0F4C4A #2C0F4C #4C0F10
square
#2F4C0F #0F4C4A #2C0F4C #4C0F10
split-complementary
#2F4C0F #0F104C #4A0F4C
monochromatic
#101A05 #101A05 #2F4C0F #4F7F19 #6EB223

Accessibility & contrast

On white

9.72
#2F4C0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2F4C0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4C0F
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4C0F#FFFFFF#000000##FFFFFF
##2F4C0F1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504605
Deuteranopia (green-blind)
#4C4315
Tritanopia (blue-blind)
#304940
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f4c0f;
/* rgb */ color: rgb(47, 76, 15);
/* oklch */ color: oklch(38.0% 0.093 131.9);
Tailwind
colors: {
  custom: {
    50: '#6a7e52',
    500: '#2f4c0f',
    950: '#000000',
  },
}
SCSS
$custom: #2f4c0f;
$custom-light: #6a7e52;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4c0f",
  "rgb": {
    "r": 47,
    "g": 76,
    "b": 15
  },
  "hsl": {
    "h": 88.525,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37984,
    "c": 0.09317,
    "h": 131.9
  },
  "luminance": 0.05808
}

Semantic roles & 50–950 ramp

primary
#2F4C0F
secondary
#593186
accent
#3EEA90
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #2F4C0F

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

Preview Lab → · Contrast checker → · Palette generator →

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