#404050#404050

#404050 is a dark, muted blue. Relative luminance 0.053; OKLCH L 37.8% C 0.027 H 285.0°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#404050
RGBrgb(64, 64, 80)
HSLhsl(240, 11%, 28%)
HSVhsv(240, 20%, 31%)
CMYKcmyk(20%, 20%, 0%, 68.6%)
CIE-LABlab(27.67, 3.92, -9.62)
CIE-LCHlch(27.67, 10.39, 292.19°)
OKLaboklab(37.79% 0.007 -0.0262)
OKLCHoklch(37.79% 0.027 285)
XYZxyz(5.3954, 5.3359, 8.3335)
Luminance0.0534 (WCAG relative)
Temperatureneutral
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404050 #505040
analogous
#404850 #404050 #484050
triadic
#404050 #504040 #405040
tetradic
#404050 #504048 #505040 #405048
square
#404050 #504048 #505040 #405048
split-complementary
#404050 #504840 #485040
monochromatic
#0E0E11 #25252E #404050 #5B5B72 #787893

Accessibility & contrast

On white

10.16
#404050 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#404050 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404050
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404050#FFFFFF#000000##FFFFFF
##4040501.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C4251
Deuteranopia (green-blind)
#3C4150
Tritanopia (blue-blind)
#3D4345
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #404050;
/* rgb */ color: rgb(64, 64, 80);
/* oklch */ color: oklch(37.8% 0.027 285.0);
Tailwind
colors: {
  custom: {
    50: '#757481',
    500: '#404050',
    950: '#000000',
  },
}
SCSS
$custom: #404050;
$custom-light: #757481;
$custom-dark: #000000;
JSON
{
  "hex": "#404050",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 80
  },
  "hsl": {
    "h": 240,
    "s": 11.111,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37793,
    "c": 0.02715,
    "h": 285
  },
  "luminance": 0.05336
}

Semantic roles & 50–950 ramp

primary
#404050
secondary
#7F7F6D
accent
#B474B4
background
#F7F7F7
surface
#EDEDEE
border
#C8C8C9
text
#08080A
muted
#7B7B7C

Preview Lab

Preview with #404050

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

Preview Lab → · Contrast checker → · Palette generator →

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