#404E7E#404E7E

#404E7E is a dark, moderate blue. Relative luminance 0.080; OKLCH L 43.5% C 0.081 H 270.4°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#404E7E
RGBrgb(64, 78, 126)
HSLhsl(226, 33%, 37%)
HSVhsv(226, 49%, 49%)
CMYKcmyk(49.2%, 38.1%, 0%, 50.6%)
CIE-LABlab(34.08, 8.66, -28.91)
CIE-LCHlch(34.08, 30.18, 286.67°)
OKLaboklab(43.48% 0.0006 -0.0815)
OKLCHoklch(43.48% 0.081 270.4)
XYZxyz(8.6034, 8.0446, 20.8340)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404E7E #7E7040
analogous
#406D7E #404E7E #51407E
triadic
#404E7E #7E404E #4E7E40
tetradic
#404E7E #7E406D #7E7040 #407E51
square
#404E7E #7E406D #7E7040 #407E51
split-complementary
#404E7E #7E5140 #6D7E40
monochromatic
#171C2D #2B3555 #404E7E #5567A7 #7C8BBC

Accessibility & contrast

On white

8.05
#404E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#404E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404E7E
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404E7E#FFFFFF#000000##FFFFFF
##404E7E1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5380
Deuteranopia (green-blind)
#364E7D
Tritanopia (blue-blind)
#285860
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #404e7e;
/* rgb */ color: rgb(64, 78, 126);
/* oklch */ color: oklch(43.5% 0.081 270.4);
Tailwind
colors: {
  custom: {
    50: '#787fa3',
    500: '#404e7e',
    950: '#000000',
  },
}
SCSS
$custom: #404e7e;
$custom-light: #787fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#404e7e",
  "rgb": {
    "r": 64,
    "g": 78,
    "b": 126
  },
  "hsl": {
    "h": 226.452,
    "s": 32.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.43477,
    "c": 0.08149,
    "h": 270.4
  },
  "luminance": 0.08045
}

Semantic roles & 50–950 ramp

primary
#404E7E
secondary
#A79B73
accent
#B15FC9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090A0F
muted
#7B7C7F

Preview Lab

Preview with #404E7E

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

Preview Lab → · Contrast checker → · Palette generator →

#404E7E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva