#2F511A#2F511A

#2F511A is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.5% C 0.092 H 135.4°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#2F511A
RGBrgb(47, 81, 26)
HSLhsl(97, 51%, 21%)
HSVhsv(97, 68%, 32%)
CMYKcmyk(42%, 0%, 67.9%, 68.2%)
CIE-LABlab(30.79, -23.51, 27.75)
CIE-LCHlch(30.79, 36.38, 130.27°)
OKLaboklab(39.54% -0.0653 0.0644)
OKLCHoklch(39.54% 0.092 135.4)
XYZxyz(4.3011, 6.5636, 2.0173)
Luminance0.0656 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F511A #3C1A51
analogous
#4A511A #2F511A #1A5120
triadic
#2F511A #1A2F51 #511A2F
tetradic
#2F511A #1A4A51 #3C1A51 #51201A
square
#2F511A #1A4A51 #3C1A51 #51201A
split-complementary
#2F511A #201A51 #511A4A
monochromatic
#0D1707 #14230B #2F511A #4A7F29 #65AE38

Accessibility & contrast

On white

9.08
#2F511A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2F511A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F511A
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F511A#FFFFFF#000000##FFFFFF
##2F511A1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A14
Deuteranopia (green-blind)
#4F471E
Tritanopia (blue-blind)
#2E4E45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f511a;
/* rgb */ color: rgb(47, 81, 26);
/* oklch */ color: oklch(39.5% 0.092 135.4);
Tailwind
colors: {
  custom: {
    50: '#6a8259',
    500: '#2f511a',
    950: '#000000',
  },
}
SCSS
$custom: #2f511a;
$custom-light: #6a8259;
$custom-dark: #000000;
JSON
{
  "hex": "#2f511a",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 26
  },
  "hsl": {
    "h": 97.091,
    "s": 51.402,
    "l": 20.98
  },
  "oklch": {
    "l": 0.39543,
    "c": 0.09167,
    "h": 135.4
  },
  "luminance": 0.06564
}

Semantic roles & 50–950 ramp

primary
#2F511A
secondary
#6C4087
accent
#4DDBA5
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F511A

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

Preview Lab → · Contrast checker → · Palette generator →

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