#40504C#40504C

#40504C is a dark, muted teal. Relative luminance 0.073; OKLCH L 41.6% C 0.021 H 178.3°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#40504C
RGBrgb(64, 80, 76)
HSLhsl(165, 11%, 28%)
HSVhsv(165, 20%, 31%)
CMYKcmyk(20%, 0%, 5%, 68.6%)
CIE-LABlab(32.59, -7.22, 0.27)
CIE-LCHlch(32.59, 7.22, 177.82°)
OKLaboklab(41.62% -0.0212 0.0006)
OKLCHoklch(41.62% 0.021 178.3)
XYZxyz(6.2872, 7.3489, 7.9233)
Luminance0.0735 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40504C #504044
analogous
#405044 #40504C #404C50
triadic
#40504C #4C4050 #504C40
tetradic
#40504C #444050 #504044 #4C5040
square
#40504C #444050 #504044 #4C5040
split-complementary
#40504C #50404C #504440
monochromatic
#0E1110 #252E2C #40504C #5B726C #78938C

Accessibility & contrast

On white

8.50
#40504C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#40504C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40504C
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40504C#FFFFFF#000000##FFFFFF
##40504C1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4E4C
Deuteranopia (green-blind)
#4C4C4C
Tritanopia (blue-blind)
#3C514F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #40504c;
/* rgb */ color: rgb(64, 80, 76);
/* oklch */ color: oklch(41.6% 0.021 178.3);
Tailwind
colors: {
  custom: {
    50: '#75817e',
    500: '#40504c',
    950: '#000000',
  },
}
SCSS
$custom: #40504c;
$custom-light: #75817e;
$custom-dark: #000000;
JSON
{
  "hex": "#40504c",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 76
  },
  "hsl": {
    "h": 165,
    "s": 11.111,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41618,
    "c": 0.02119,
    "h": 178.3
  },
  "luminance": 0.07349
}

Semantic roles & 50–950 ramp

primary
#40504C
secondary
#7F6D71
accent
#7484B4
background
#F7F7F7
surface
#EDEEEE
border
#C8C9C9
text
#080A09
muted
#7B7C7B

Preview Lab

Preview with #40504C

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

Preview Lab → · Contrast checker → · Palette generator →

#40504C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva