#20581B#20581B

#20581B is a dark, moderate green. Relative luminance 0.074; OKLCH L 40.9% C 0.110 H 142.0°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#20581B
RGBrgb(32, 88, 27)
HSLhsl(115, 53%, 23%)
HSVhsv(115, 69%, 35%)
CMYKcmyk(63.6%, 0%, 69.3%, 65.5%)
CIE-LABlab(32.62, -31.66, 29.09)
CIE-LCHlch(32.62, 43.00, 137.42°)
OKLaboklab(40.86% -0.0863 0.0675)
OKLCHoklch(40.86% 0.11 142)
XYZxyz(4.2830, 7.3653, 2.2326)
Luminance0.0737 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20581B #531B58
analogous
#3E581B #20581B #1B5835
triadic
#20581B #1B2058 #581B20
tetradic
#20581B #1B3E58 #531B58 #58351B
square
#20581B #1B3E58 #531B58 #58351B
split-complementary
#20581B #351B58 #581B3E
monochromatic
#091707 #0F290D #20581B #318729 #42B638

Accessibility & contrast

On white

8.49
#20581B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#20581B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20581B
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20581B#FFFFFF#000000##FFFFFF
##20581B1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A5014
Deuteranopia (green-blind)
#534B20
Tritanopia (blue-blind)
#17554B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #20581b;
/* rgb */ color: rgb(32, 88, 27);
/* oklch */ color: oklch(40.9% 0.110 142.0);
Tailwind
colors: {
  custom: {
    50: '#63885a',
    500: '#20581b',
    950: '#000000',
  },
}
SCSS
$custom: #20581b;
$custom-light: #63885a;
$custom-dark: #000000;
JSON
{
  "hex": "#20581b",
  "rgb": {
    "r": 32,
    "g": 88,
    "b": 27
  },
  "hsl": {
    "h": 115.082,
    "s": 53.043,
    "l": 22.549
  },
  "oklch": {
    "l": 0.40863,
    "c": 0.10956,
    "h": 142
  },
  "luminance": 0.07366
}

Semantic roles & 50–950 ramp

primary
#20581B
secondary
#87418E
accent
#4BDCD1
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#060B04
muted
#7A7C79

Preview Lab

Preview with #20581B

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

Preview Lab → · Contrast checker → · Palette generator →

#20581B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva