#404054#404054

#404054 is a dark, muted blue. Relative luminance 0.054; OKLCH L 38.0% C 0.034 H 284.7°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#404054
RGBrgb(64, 64, 84)
HSLhsl(240, 14%, 29%)
HSVhsv(240, 24%, 33%)
CMYKcmyk(23.8%, 23.8%, 0%, 67.1%)
CIE-LABlab(27.84, 5.00, -11.97)
CIE-LCHlch(27.84, 12.98, 292.66°)
OKLaboklab(37.98% 0.0086 -0.0328)
OKLCHoklch(37.98% 0.034 284.7)
XYZxyz(5.5476, 5.3968, 9.1352)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404054 #545440
analogous
#404A54 #404054 #4A4054
triadic
#404054 #544040 #405440
tetradic
#404054 #54404A #545440 #40544A
square
#404054 #54404A #545440 #40544A
split-complementary
#404054 #544A40 #4A5440
monochromatic
#0D0D11 #262631 #404054 #5A5A77 #777797

Accessibility & contrast

On white

10.10
#404054 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#404054 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404054
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404054#FFFFFF#000000##FFFFFF
##4040541.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B4255
Deuteranopia (green-blind)
#3A4153
Tritanopia (blue-blind)
#3C4347
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #404054;
/* rgb */ color: rgb(64, 64, 84);
/* oklch */ color: oklch(38.0% 0.034 284.7);
Tailwind
colors: {
  custom: {
    50: '#757484',
    500: '#404054',
    950: '#000000',
  },
}
SCSS
$custom: #404054;
$custom-light: #757484;
$custom-dark: #000000;
JSON
{
  "hex": "#404054",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 84
  },
  "hsl": {
    "h": 240,
    "s": 13.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37976,
    "c": 0.03393,
    "h": 284.7
  },
  "luminance": 0.05397
}

Semantic roles & 50–950 ramp

primary
#404054
secondary
#83836D
accent
#B671B6
background
#F7F7F8
surface
#EDEDEF
border
#C8C8CA
text
#08080A
muted
#7B7B7C

Preview Lab

Preview with #404054

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

Preview Lab → · Contrast checker → · Palette generator →

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