#404579#404579

#404579 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 41.2% C 0.087 H 277.7°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#404579
RGBrgb(64, 69, 121)
HSLhsl(235, 31%, 36%)
HSVhsv(235, 47%, 47%)
CMYKcmyk(47.1%, 43%, 0%, 52.5%)
CIE-LABlab(31.18, 12.94, -30.38)
CIE-LCHlch(31.18, 33.02, 293.06°)
OKLaboklab(41.16% 0.0116 -0.0858)
OKLCHoklch(41.16% 0.087 277.7)
XYZxyz(7.6926, 6.7263, 18.9784)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404579 #797440
analogous
#406279 #404579 #584079
triadic
#404579 #794045 #457940
tetradic
#404579 #794062 #797440 #407958
square
#404579 #794062 #797440 #407958
split-complementary
#404579 #795840 #627940
monochromatic
#161729 #2B2E51 #404579 #555CA1 #7A80B9

Accessibility & contrast

On white

8.95
#404579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#404579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404579
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404579#FFFFFF#000000##FFFFFF
##4045791.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314C7B
Deuteranopia (green-blind)
#2D4778
Tritanopia (blue-blind)
#2C5059
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #404579;
/* rgb */ color: rgb(64, 69, 121);
/* oklch */ color: oklch(41.2% 0.087 277.7);
Tailwind
colors: {
  custom: {
    50: '#7878a0',
    500: '#404579',
    950: '#000000',
  },
}
SCSS
$custom: #404579;
$custom-light: #7878a0;
$custom-dark: #000000;
JSON
{
  "hex": "#404579",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 121
  },
  "hsl": {
    "h": 234.737,
    "s": 30.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41159,
    "c": 0.08661,
    "h": 277.7
  },
  "luminance": 0.06727
}

Semantic roles & 50–950 ramp

primary
#404579
secondary
#A49F71
accent
#BE61C7
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#09090E
muted
#7B7B7E

Preview Lab

Preview with #404579

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

Preview Lab → · Contrast checker → · Palette generator →

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