#404058#404058

#404058 is a dark, muted blue. Relative luminance 0.055; OKLCH L 38.2% C 0.041 H 284.3°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#404058
RGBrgb(64, 64, 88)
HSLhsl(240, 16%, 30%)
HSVhsv(240, 27%, 35%)
CMYKcmyk(27.3%, 27.3%, 0%, 65.5%)
CIE-LABlab(28.01, 6.11, -14.31)
CIE-LCHlch(28.01, 15.56, 293.13°)
OKLaboklab(38.17% 0.0101 -0.0394)
OKLCHoklch(38.17% 0.041 284.3)
XYZxyz(5.7088, 5.4612, 9.9840)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404058 #585840
analogous
#404C58 #404058 #4C4058
triadic
#404058 #584040 #405840
tetradic
#404058 #58404C #585840 #40584C
square
#404058 #58404C #585840 #40584C
split-complementary
#404058 #584C40 #4C5840
monochromatic
#0D0D12 #262635 #404058 #5A5A7B #77779C

Accessibility & contrast

On white

10.04
#404058 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#404058 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404058
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404058#FFFFFF#000000##FFFFFF
##4040581.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A4359
Deuteranopia (green-blind)
#394157
Tritanopia (blue-blind)
#3A4448
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #404058;
/* rgb */ color: rgb(64, 64, 88);
/* oklch */ color: oklch(38.2% 0.041 284.3);
Tailwind
colors: {
  custom: {
    50: '#757487',
    500: '#404058',
    950: '#000000',
  },
}
SCSS
$custom: #404058;
$custom-light: #757487;
$custom-dark: #000000;
JSON
{
  "hex": "#404058",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 88
  },
  "hsl": {
    "h": 240,
    "s": 15.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.38169,
    "c": 0.04068,
    "h": 284.3
  },
  "luminance": 0.05461
}

Semantic roles & 50–950 ramp

primary
#404058
secondary
#87876C
accent
#B96FB9
background
#F7F7F8
surface
#EDEDEF
border
#C8C8CA
text
#08080B
muted
#7B7B7C

Preview Lab

Preview with #404058

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

Preview Lab → · Contrast checker → · Palette generator →

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