#405042#405042

#405042 is a dark, muted green. Relative luminance 0.072; OKLCH L 41.3% C 0.031 H 148.5°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#405042
RGBrgb(64, 80, 66)
HSLhsl(128, 11%, 28%)
HSVhsv(128, 20%, 31%)
CMYKcmyk(20%, 0%, 17.5%, 68.6%)
CIE-LABlab(32.30, -9.50, 6.20)
CIE-LCHlch(32.30, 11.34, 146.84°)
OKLaboklab(41.3% -0.0261 0.016)
OKLCHoklch(41.3% 0.031 148.5)
XYZxyz(5.9661, 7.2205, 6.2326)
Luminance0.0722 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405042 #50404E
analogous
#465040 #405042 #40504A
triadic
#405042 #424050 #504240
tetradic
#405042 #404650 #50404E #504A40
square
#405042 #404650 #50404E #504A40
split-complementary
#405042 #4A4050 #504046
monochromatic
#0E110E #252E26 #405042 #5B725E #78937B

Accessibility & contrast

On white

8.59
#405042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #405042
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405042#FFFFFF#000000##FFFFFF
##4050421.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504D41
Deuteranopia (green-blind)
#4E4B43
Tritanopia (blue-blind)
#3E4F4C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #405042;
/* rgb */ color: rgb(64, 80, 66);
/* oklch */ color: oklch(41.3% 0.031 148.5);
Tailwind
colors: {
  custom: {
    50: '#758176',
    500: '#405042',
    950: '#000000',
  },
}
SCSS
$custom: #405042;
$custom-light: #758176;
$custom-dark: #000000;
JSON
{
  "hex": "#405042",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 66
  },
  "hsl": {
    "h": 127.5,
    "s": 11.111,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41297,
    "c": 0.03065,
    "h": 148.5
  },
  "luminance": 0.07221
}

Semantic roles & 50–950 ramp

primary
#405042
secondary
#7F6D7D
accent
#74ACB4
background
#F7F7F7
surface
#EDEEED
border
#C8C9C8
text
#080A08
muted
#7B7C7B

Preview Lab

Preview with #405042

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

Preview Lab → · Contrast checker → · Palette generator →

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