#404D8D#404D8D

#404D8D is a dark, moderate blue. Relative luminance 0.083; OKLCH L 44.2% C 0.106 H 272.7°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#404D8D
RGBrgb(64, 77, 141)
HSLhsl(230, 38%, 40%)
HSVhsv(230, 55%, 55%)
CMYKcmyk(54.6%, 45.4%, 0%, 44.7%)
CIE-LABlab(34.64, 14.37, -37.24)
CIE-LCHlch(34.64, 39.91, 291.10°)
OKLaboklab(44.19% 0.005 -0.1058)
OKLCHoklch(44.19% 0.106 272.7)
XYZxyz(9.5744, 8.3202, 26.2956)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404D8D #8D8040
analogous
#40738D #404D8D #59408D
triadic
#404D8D #8D404D #4D8D40
tetradic
#404D8D #8D4073 #8D8040 #408D59
square
#404D8D #8D4073 #8D8040 #408D59
split-complementary
#404D8D #8D5940 #738D40
monochromatic
#1A1F39 #2D3663 #404D8D #5767B3 #818DC6

Accessibility & contrast

On white

7.88
#404D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#404D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404D8D
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404D8D#FFFFFF#000000##FFFFFF
##404D8D1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32558F
Deuteranopia (green-blind)
#294E8C
Tritanopia (blue-blind)
#1B5B66
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #404d8d;
/* rgb */ color: rgb(64, 77, 141);
/* oklch */ color: oklch(44.2% 0.106 272.7);
Tailwind
colors: {
  custom: {
    50: '#7b7eaf',
    500: '#404d8d',
    950: '#000000',
  },
}
SCSS
$custom: #404d8d;
$custom-light: #7b7eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#404d8d",
  "rgb": {
    "r": 64,
    "g": 77,
    "b": 141
  },
  "hsl": {
    "h": 229.87,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.44189,
    "c": 0.10596,
    "h": 272.7
  },
  "luminance": 0.08321
}

Semantic roles & 50–950 ramp

primary
#404D8D
secondary
#B0A778
accent
#BA5ACE
background
#F7F7FA
surface
#EEEEF4
border
#C9C9CE
text
#0A0910
muted
#7C7B7F

Preview Lab

Preview with #404D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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