#2F4A10#2F4A10

#2F4A10 is a dark, moderate yellow-green. Relative luminance 0.055; OKLCH L 37.4% C 0.089 H 131.3°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#2F4A10
RGBrgb(47, 74, 16)
HSLhsl(88, 64%, 18%)
HSVhsv(88, 78%, 29%)
CMYKcmyk(36.5%, 0%, 78.4%, 71%)
CIE-LABlab(28.22, -20.92, 29.79)
CIE-LCHlch(28.22, 36.41, 125.07°)
OKLaboklab(37.41% -0.0591 0.0672)
OKLCHoklch(37.41% 0.089 131.3)
XYZxyz(3.7146, 5.5392, 1.3636)
Luminance0.0554 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4A10 #2B104A
analogous
#4A4810 #2F4A10 #124A10
triadic
#2F4A10 #102F4A #4A102F
tetradic
#2F4A10 #104A48 #2B104A #4A1012
square
#2F4A10 #104A48 #2B104A #4A1012
split-complementary
#2F4A10 #10124A #48104A
monochromatic
#101905 #101905 #2F4A10 #4F7C1B #6FAF26

Accessibility & contrast

On white

9.96
#2F4A10 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2F4A10 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4A10
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4A10#FFFFFF#000000##FFFFFF
##2F4A101.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f4a10;
/* rgb */ color: rgb(47, 74, 16);
/* oklch */ color: oklch(37.4% 0.089 131.3);
Tailwind
colors: {
  custom: {
    50: '#6a7c52',
    500: '#2f4a10',
    950: '#000000',
  },
}
SCSS
$custom: #2f4a10;
$custom-light: #6a7c52;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4a10",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 16
  },
  "hsl": {
    "h": 87.931,
    "s": 64.444,
    "l": 17.647
  },
  "oklch": {
    "l": 0.37414,
    "c": 0.08948,
    "h": 131.3
  },
  "luminance": 0.05539
}

Semantic roles & 50–950 ramp

primary
#2F4A10
secondary
#583284
accent
#40E78E
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #2F4A10

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

Preview Lab → · Contrast checker → · Palette generator →

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