#2F4C0B#2F4C0B

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

Color values

HEX#2F4C0B
RGBrgb(47, 76, 11)
HSLhsl(87, 75%, 17%)
HSVhsv(87, 86%, 30%)
CMYKcmyk(38.2%, 0%, 85.5%, 70.2%)
CIE-LABlab(28.89, -22.29, 32.48)
CIE-LCHlch(28.89, 39.39, 124.46°)
OKLaboklab(37.95% -0.0632 0.0719)
OKLCHoklch(37.95% 0.096 131.3)
XYZxyz(3.8171, 5.7972, 1.2344)
Luminance0.0580 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4C0B #280B4C
analogous
#4C490B #2F4C0B #0F4C0B
triadic
#2F4C0B #0B2F4C #4C0B2F
tetradic
#2F4C0B #0B4C49 #280B4C #4C0B0F
square
#2F4C0B #0B4C49 #280B4C #4C0B0F
split-complementary
#2F4C0B #0B0F4C #490B4C
monochromatic
#111B04 #111B04 #2F4C0B #508113 #71B71A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F4C0B#FFFFFF#000000##FFFFFF
##2F4C0B1.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)
#504600
Deuteranopia (green-blind)
#4C4312
Tritanopia (blue-blind)
#304840
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f4c0b;
/* rgb */ color: rgb(47, 76, 11);
/* oklch */ color: oklch(38.0% 0.096 131.3);
Tailwind
colors: {
  custom: {
    50: '#6b7e50',
    500: '#2f4c0b',
    950: '#000000',
  },
}
SCSS
$custom: #2f4c0b;
$custom-light: #6b7e50;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4c0b",
  "rgb": {
    "r": 47,
    "g": 76,
    "b": 11
  },
  "hsl": {
    "h": 86.769,
    "s": 74.713,
    "l": 17.059
  },
  "oklch": {
    "l": 0.37954,
    "c": 0.09577,
    "h": 131.3
  },
  "luminance": 0.05797
}

Semantic roles & 50–950 ramp

primary
#2F4C0B
secondary
#542B88
accent
#36F18A
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #2F4C0B

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

Preview Lab → · Contrast checker → · Palette generator →

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