#405040#405040

#405040 is a dark, muted green. Relative luminance 0.072; OKLCH L 41.2% C 0.033 H 145.0°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#405040
RGBrgb(64, 80, 64)
HSLhsl(120, 11%, 28%)
HSVhsv(120, 20%, 31%)
CMYKcmyk(20%, 0%, 20%, 68.6%)
CIE-LABlab(32.25, -9.92, 7.39)
CIE-LCHlch(32.25, 12.37, 143.29°)
OKLaboklab(41.24% -0.0271 0.019)
OKLCHoklch(41.24% 0.033 145)
XYZxyz(5.9082, 7.1973, 5.9274)
Luminance0.0720 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405040 #504050
analogous
#485040 #405040 #405048
triadic
#405040 #404050 #504040
tetradic
#405040 #404850 #504050 #504840
square
#405040 #404850 #504050 #504840
split-complementary
#405040 #484050 #504048
monochromatic
#0E110E #252E25 #405040 #5B725B #789378

Accessibility & contrast

On white

8.61
#405040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#405040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405040
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405040#FFFFFF#000000##FFFFFF
##4050401.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514D3F
Deuteranopia (green-blind)
#4E4B41
Tritanopia (blue-blind)
#3F4F4B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #405040;
/* rgb */ color: rgb(64, 80, 64);
/* oklch */ color: oklch(41.2% 0.033 145.0);
Tailwind
colors: {
  custom: {
    50: '#758174',
    500: '#405040',
    950: '#000000',
  },
}
SCSS
$custom: #405040;
$custom-light: #758174;
$custom-dark: #000000;
JSON
{
  "hex": "#405040",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 64
  },
  "hsl": {
    "h": 120,
    "s": 11.111,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41239,
    "c": 0.03314,
    "h": 145
  },
  "luminance": 0.07197
}

Semantic roles & 50–950 ramp

primary
#405040
secondary
#7F6D7F
accent
#74B4B4
background
#F7F7F7
surface
#EDEEED
border
#C8C9C8
text
#080A08
muted
#7B7C7B

Preview Lab

Preview with #405040

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

Preview Lab → · Contrast checker → · Palette generator →

#405040 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva