#404052#404052

#404052 is a dark, muted blue. Relative luminance 0.054; OKLCH L 37.9% C 0.031 H 284.9°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#404052
RGBrgb(64, 64, 82)
HSLhsl(240, 12%, 29%)
HSVhsv(240, 22%, 32%)
CMYKcmyk(22%, 22%, 0%, 67.8%)
CIE-LABlab(27.75, 4.46, -10.80)
CIE-LCHlch(27.75, 11.68, 292.43°)
OKLaboklab(37.88% 0.0078 -0.0295)
OKLCHoklch(37.88% 0.031 284.9)
XYZxyz(5.4704, 5.3659, 8.7285)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404052 #525240
analogous
#404952 #404052 #494052
triadic
#404052 #524040 #405240
tetradic
#404052 #524049 #525240 #405249
square
#404052 #524049 #525240 #405249
split-complementary
#404052 #524940 #495240
monochromatic
#0D0D11 #252530 #404052 #5B5B74 #777795

Accessibility & contrast

On white

10.13
#404052 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #404052
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404052#FFFFFF#000000##FFFFFF
##4040521.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C4253
Deuteranopia (green-blind)
#3B4152
Tritanopia (blue-blind)
#3C4346
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #404052;
/* rgb */ color: rgb(64, 64, 82);
/* oklch */ color: oklch(37.9% 0.031 284.9);
Tailwind
colors: {
  custom: {
    50: '#757482',
    500: '#404052',
    950: '#000000',
  },
}
SCSS
$custom: #404052;
$custom-light: #757482;
$custom-dark: #000000;
JSON
{
  "hex": "#404052",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 82
  },
  "hsl": {
    "h": 240,
    "s": 12.329,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37883,
    "c": 0.03054,
    "h": 284.9
  },
  "luminance": 0.05366
}

Semantic roles & 50–950 ramp

primary
#404052
secondary
#81816D
accent
#B573B5
background
#F7F7F7
surface
#EDEDEE
border
#C8C8C9
text
#08080A
muted
#7B7B7C

Preview Lab

Preview with #404052

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

Preview Lab → · Contrast checker → · Palette generator →

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