#2F540F#2F540F

#2F540F is a dark, moderate yellow-green. Relative luminance 0.070; OKLCH L 40.3% C 0.105 H 134.1°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#2F540F
RGBrgb(47, 84, 15)
HSLhsl(92, 70%, 19%)
HSVhsv(92, 82%, 33%)
CMYKcmyk(44%, 0%, 82.1%, 67.1%)
CIE-LABlab(31.76, -25.94, 33.71)
CIE-LCHlch(31.76, 42.53, 127.58°)
OKLaboklab(40.3% -0.0728 0.0752)
OKLCHoklch(40.3% 0.105 134.1)
XYZxyz(4.4288, 6.9792, 1.5656)
Luminance0.0698 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F540F #340F54
analogous
#52540F #2F540F #0F5412
triadic
#2F540F #0F2F54 #540F2F
tetradic
#2F540F #0F5254 #340F54 #54120F
square
#2F540F #0F5254 #340F54 #54120F
split-complementary
#2F540F #120F54 #540F52
monochromatic
#0F1A05 #122006 #2F540F #4C8818 #69BC22

Accessibility & contrast

On white

8.77
#2F540F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2F540F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F540F
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F540F#FFFFFF#000000##FFFFFF
##2F540F1.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D02
Deuteranopia (green-blind)
#534A16
Tritanopia (blue-blind)
#2F5047
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f540f;
/* rgb */ color: rgb(47, 84, 15);
/* oklch */ color: oklch(40.3% 0.105 134.1);
Tailwind
colors: {
  custom: {
    50: '#6b8453',
    500: '#2f540f',
    950: '#000000',
  },
}
SCSS
$custom: #2f540f;
$custom-light: #6b8453;
$custom-dark: #000000;
JSON
{
  "hex": "#2f540f",
  "rgb": {
    "r": 47,
    "g": 84,
    "b": 15
  },
  "hsl": {
    "h": 92.174,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.40304,
    "c": 0.10466,
    "h": 134.1
  },
  "luminance": 0.06979
}

Semantic roles & 50–950 ramp

primary
#2F540F
secondary
#63318E
accent
#3BED9A
background
#F6F8F4
surface
#EBEFE8
border
#C6CAC4
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F540F

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

Preview Lab → · Contrast checker → · Palette generator →

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