#404D8F#404D8F

#404D8F is a dark, moderate blue. Relative luminance 0.084; OKLCH L 44.3% C 0.109 H 272.8°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#404D8F
RGBrgb(64, 77, 143)
HSLhsl(230, 38%, 41%)
HSVhsv(230, 55%, 56%)
CMYKcmyk(55.2%, 46.2%, 0%, 43.9%)
CIE-LABlab(34.76, 15.05, -38.26)
CIE-LCHlch(34.76, 41.12, 291.47°)
OKLaboklab(44.32% 0.0054 -0.1088)
OKLCHoklch(44.32% 0.109 272.8)
XYZxyz(9.7246, 8.3802, 27.0864)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404D8F #8F8240
analogous
#40748F #404D8F #5B408F
triadic
#404D8F #8F404D #4D8F40
tetradic
#404D8F #8F4074 #8F8240 #408F5B
square
#404D8F #8F4074 #8F8240 #408F5B
split-complementary
#404D8F #8F5B40 #748F40
monochromatic
#1A1F3A #2D3665 #404D8F #5867B4 #828EC7

Accessibility & contrast

On white

7.85
#404D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#404D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404D8F
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404D8F#FFFFFF#000000##FFFFFF
##404D8F1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305591
Deuteranopia (green-blind)
#274F8E
Tritanopia (blue-blind)
#195B67
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #404d8f;
/* rgb */ color: rgb(64, 77, 143);
/* oklch */ color: oklch(44.3% 0.109 272.8);
Tailwind
colors: {
  custom: {
    50: '#7b7eb0',
    500: '#404d8f',
    950: '#000000',
  },
}
SCSS
$custom: #404d8f;
$custom-light: #7b7eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#404d8f",
  "rgb": {
    "r": 64,
    "g": 77,
    "b": 143
  },
  "hsl": {
    "h": 230.127,
    "s": 38.164,
    "l": 40.588
  },
  "oklch": {
    "l": 0.44321,
    "c": 0.10898,
    "h": 272.8
  },
  "luminance": 0.08381
}

Semantic roles & 50–950 ramp

primary
#404D8F
secondary
#B2A879
accent
#BB5ACE
background
#F7F7FA
surface
#EEEEF5
border
#C9C9CF
text
#0A0910
muted
#7C7B7F

Preview Lab

Preview with #404D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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