#2F581A#2F581A

#2F581A is a dark, moderate yellow-green. Relative luminance 0.077; OKLCH L 41.6% C 0.102 H 136.7°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#2F581A
RGBrgb(47, 88, 26)
HSLhsl(100, 54%, 22%)
HSVhsv(100, 70%, 35%)
CMYKcmyk(46.6%, 0%, 70.5%, 65.5%)
CIE-LABlab(33.26, -26.90, 30.46)
CIE-LCHlch(33.26, 40.64, 131.44°)
OKLaboklab(41.56% -0.0745 0.0701)
OKLCHoklch(41.56% 0.102 136.7)
XYZxyz(4.8483, 7.6581, 2.1998)
Luminance0.0766 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F581A #431A58
analogous
#4E581A #2F581A #1A5824
triadic
#2F581A #1A2F58 #581A2F
tetradic
#2F581A #1A4E58 #431A58 #58241A
square
#2F581A #1A4E58 #431A58 #58241A
split-complementary
#2F581A #241A58 #581A4E
monochromatic
#0D1807 #16290C #2F581A #488728 #61B636

Accessibility & contrast

On white

8.30
#2F581A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2F581A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F581A
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F581A#FFFFFF#000000##FFFFFF
##2F581A1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5012
Deuteranopia (green-blind)
#564D1F
Tritanopia (blue-blind)
#2D554B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f581a;
/* rgb */ color: rgb(47, 88, 26);
/* oklch */ color: oklch(41.6% 0.102 136.7);
Tailwind
colors: {
  custom: {
    50: '#6b875a',
    500: '#2f581a',
    950: '#000000',
  },
}
SCSS
$custom: #2f581a;
$custom-light: #6b875a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f581a",
  "rgb": {
    "r": 47,
    "g": 88,
    "b": 26
  },
  "hsl": {
    "h": 99.677,
    "s": 54.386,
    "l": 22.353
  },
  "oklch": {
    "l": 0.41561,
    "c": 0.10228,
    "h": 136.7
  },
  "luminance": 0.07658
}

Semantic roles & 50–950 ramp

primary
#2F581A
secondary
#74408E
accent
#4ADEAC
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #2F581A

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

Preview Lab → · Contrast checker → · Palette generator →

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