#405342#405342

#405342 is a dark, muted green. Relative luminance 0.077; OKLCH L 42.1% C 0.037 H 147.7°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#405342
RGBrgb(64, 83, 66)
HSLhsl(126, 13%, 29%)
HSVhsv(126, 23%, 33%)
CMYKcmyk(22.9%, 0%, 20.5%, 67.5%)
CIE-LABlab(33.29, -11.26, 7.59)
CIE-LCHlch(33.29, 13.58, 146.03°)
OKLaboklab(42.08% -0.0309 0.0195)
OKLCHoklch(42.08% 0.037 147.7)
XYZxyz(6.1907, 7.6697, 6.3074)
Luminance0.0767 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405342 #534051
analogous
#485340 #405342 #40534C
triadic
#405342 #424053 #534240
tetradic
#405342 #404853 #534051 #534C40
square
#405342 #404853 #534051 #534C40
split-complementary
#405342 #4C4053 #534048
monochromatic
#0D110E #253027 #405342 #5B765D #77967A

Accessibility & contrast

On white

8.29
#405342 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#405342 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405342
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405342#FFFFFF#000000##FFFFFF
##4053421.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#545041
Deuteranopia (green-blind)
#504D43
Tritanopia (blue-blind)
#3E524E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #405342;
/* rgb */ color: rgb(64, 83, 66);
/* oklch */ color: oklch(42.1% 0.037 147.7);
Tailwind
colors: {
  custom: {
    50: '#758376',
    500: '#405342',
    950: '#000000',
  },
}
SCSS
$custom: #405342;
$custom-light: #758376;
$custom-dark: #000000;
JSON
{
  "hex": "#405342",
  "rgb": {
    "r": 64,
    "g": 83,
    "b": 66
  },
  "hsl": {
    "h": 126.316,
    "s": 12.925,
    "l": 28.824
  },
  "oklch": {
    "l": 0.42081,
    "c": 0.03656,
    "h": 147.7
  },
  "luminance": 0.0767
}

Semantic roles & 50–950 ramp

primary
#405342
secondary
#826D80
accent
#72AFB6
background
#F7F8F7
surface
#EDEFED
border
#C8CAC8
text
#080A08
muted
#7B7C7B

Preview Lab

Preview with #405342

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

Preview Lab → · Contrast checker → · Palette generator →

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