#20271E#20271E

#20271E is a dark, near-neutral green. Relative luminance 0.019; OKLCH L 26.3% C 0.019 H 138.7°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#20271E
RGBrgb(32, 39, 30)
HSLhsl(107, 13%, 14%)
HSVhsv(107, 23%, 15%)
CMYKcmyk(17.9%, 0%, 23.1%, 84.7%)
CIE-LABlab(14.69, -5.34, 4.93)
CIE-LCHlch(14.69, 7.27, 137.27°)
OKLaboklab(26.26% -0.0145 0.0127)
OKLCHoklch(26.26% 0.019 138.7)
XYZxyz(1.5555, 1.8518, 1.5035)
Luminance0.0185 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20271E #251E27
analogous
#24271E #20271E #1E2720
triadic
#20271E #1E2027 #271E20
tetradic
#20271E #1E2427 #251E27 #27201E
square
#20271E #1E2427 #251E27 #27201E
split-complementary
#20271E #201E27 #271E24
monochromatic
#0E110D #0E110D #20271E #3C4A39 #596C53

Accessibility & contrast

On white

15.32
#20271E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#20271E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20271E
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20271E#FFFFFF#000000##FFFFFF
##20271E1.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28251D
Deuteranopia (green-blind)
#26251E
Tritanopia (blue-blind)
#202624
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #20271e;
/* rgb */ color: rgb(32, 39, 30);
/* oklch */ color: oklch(26.3% 0.019 138.7);
Tailwind
colors: {
  custom: {
    50: '#5b6159',
    500: '#20271e',
    950: '#000000',
  },
}
SCSS
$custom: #20271e;
$custom-light: #5b6159;
$custom-dark: #000000;
JSON
{
  "hex": "#20271e",
  "rgb": {
    "r": 32,
    "g": 39,
    "b": 30
  },
  "hsl": {
    "h": 106.667,
    "s": 13.043,
    "l": 13.529
  },
  "oklch": {
    "l": 0.26264,
    "c": 0.01925,
    "h": 138.7
  },
  "luminance": 0.01852
}

Semantic roles & 50–950 ramp

primary
#20271E
secondary
#544958
accent
#72B6A7
background
#F5F5F5
surface
#E9E9E9
border
#C5C5C5
text
#040503
muted
#797978

Preview Lab

Preview with #20271E

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

Preview Lab → · Contrast checker → · Palette generator →

#20271E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva