#20402E#20402E

#20402E is a dark, muted green. Relative luminance 0.042; OKLCH L 34.1% C 0.050 H 157.7°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#20402E
RGBrgb(32, 64, 46)
HSLhsl(146, 33%, 19%)
HSVhsv(146, 50%, 25%)
CMYKcmyk(50%, 0%, 28.1%, 74.9%)
CIE-LABlab(24.23, -16.77, 7.41)
CIE-LCHlch(24.23, 18.33, 156.15°)
OKLaboklab(34.09% -0.0461 0.0189)
OKLCHoklch(34.09% 0.05 157.7)
XYZxyz(2.9220, 4.1709, 3.2353)
Luminance0.0417 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20402E #402032
analogous
#224020 #20402E #20403E
triadic
#20402E #2E2040 #402E20
tetradic
#20402E #202240 #402032 #403E20
square
#20402E #202240 #402032 #403E20
split-complementary
#20402E #3E2040 #402022
monochromatic
#0A140F #0C1711 #20402E #34694B #499269

Accessibility & contrast

On white

11.45
#20402E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#20402E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20402E
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20402E#FFFFFF#000000##FFFFFF
##20402E1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#403C2D
Deuteranopia (green-blind)
#3B382F
Tritanopia (blue-blind)
#18403B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #20402e;
/* rgb */ color: rgb(32, 64, 46);
/* oklch */ color: oklch(34.1% 0.050 157.7);
Tailwind
colors: {
  custom: {
    50: '#5d7566',
    500: '#20402e',
    950: '#000000',
  },
}
SCSS
$custom: #20402e;
$custom-light: #5d7566;
$custom-dark: #000000;
JSON
{
  "hex": "#20402e",
  "rgb": {
    "r": 32,
    "g": 64,
    "b": 46
  },
  "hsl": {
    "h": 146.25,
    "s": 33.333,
    "l": 18.824
  },
  "oklch": {
    "l": 0.34086,
    "c": 0.04989,
    "h": 157.7
  },
  "luminance": 0.04171
}

Semantic roles & 50–950 ramp

primary
#20402E
secondary
#744861
accent
#5E9BC9
background
#F5F7F6
surface
#E9EDEB
border
#C5C8C6
text
#040806
muted
#797B7A

Preview Lab

Preview with #20402E

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

Preview Lab → · Contrast checker → · Palette generator →

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