#2F4B0F#2F4B0F

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

Color values

HEX#2F4B0F
RGBrgb(47, 75, 15)
HSLhsl(88, 67%, 18%)
HSVhsv(88, 80%, 29%)
CMYKcmyk(37.3%, 0%, 80%, 70.6%)
CIE-LABlab(28.57, -21.51, 30.58)
CIE-LCHlch(28.57, 37.38, 125.12°)
OKLaboklab(37.69% -0.0608 0.0687)
OKLCHoklch(37.69% 0.092 131.5)
XYZxyz(3.7746, 5.6708, 1.3476)
Luminance0.0567 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4B0F #2B0F4B
analogous
#4B490F #2F4B0F #114B0F
triadic
#2F4B0F #0F2F4B #4B0F2F
tetradic
#2F4B0F #0F4B49 #2B0F4B #4B0F11
square
#2F4B0F #0F4B49 #2B0F4B #4B0F11
split-complementary
#2F4B0F #0F114B #490F4B
monochromatic
#101A05 #101A05 #2F4B0F #4F7E19 #6FB123

Accessibility & contrast

On white

9.84
#2F4B0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4B0F
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4B0F#FFFFFF#000000##FFFFFF
##2F4B0F1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4505
Deuteranopia (green-blind)
#4B4315
Tritanopia (blue-blind)
#30483F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f4b0f;
/* rgb */ color: rgb(47, 75, 15);
/* oklch */ color: oklch(37.7% 0.092 131.5);
Tailwind
colors: {
  custom: {
    50: '#6a7d52',
    500: '#2f4b0f',
    950: '#000000',
  },
}
SCSS
$custom: #2f4b0f;
$custom-light: #6a7d52;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4b0f",
  "rgb": {
    "r": 47,
    "g": 75,
    "b": 15
  },
  "hsl": {
    "h": 88,
    "s": 66.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.37694,
    "c": 0.0917,
    "h": 131.5
  },
  "luminance": 0.05671
}

Semantic roles & 50–950 ramp

primary
#2F4B0F
secondary
#583085
accent
#3EEA8E
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #2F4B0F

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

Preview Lab → · Contrast checker → · Palette generator →

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