#404EA5#404EA5

#404EA5 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.1% C 0.140 H 272.8°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#404EA5
RGBrgb(64, 78, 165)
HSLhsl(232, 44%, 45%)
HSVhsv(232, 61%, 65%)
CMYKcmyk(61.2%, 52.7%, 0%, 35.3%)
CIE-LABlab(36.47, 22.05, -48.80)
CIE-LCHlch(36.47, 53.55, 294.32°)
OKLaboklab(46.08% 0.0069 -0.1398)
OKLCHoklch(46.08% 0.14 272.8)
XYZxyz(11.6280, 9.2544, 36.7635)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404EA5 #A59740
analogous
#4081A5 #404EA5 #6440A5
triadic
#404EA5 #A5404E #4EA540
tetradic
#404EA5 #A54081 #A59740 #40A564
square
#404EA5 #A54081 #A59740 #40A564
split-complementary
#404EA5 #A56440 #81A540
monochromatic
#1E244D #2F3979 #404EA5 #616EC2 #8D96D3

Accessibility & contrast

On white

7.37
#404EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#404EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404EA5
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404EA5#FFFFFF#000000##FFFFFF
##404EA51.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5AA8
Deuteranopia (green-blind)
#0052A3
Tritanopia (blue-blind)
#006272
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #404ea5;
/* rgb */ color: rgb(64, 78, 165);
/* oklch */ color: oklch(46.1% 0.140 272.8);
Tailwind
colors: {
  custom: {
    50: '#7f7fc0',
    500: '#404ea5',
    950: '#000000',
  },
}
SCSS
$custom: #404ea5;
$custom-light: #7f7fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#404ea5",
  "rgb": {
    "r": 64,
    "g": 78,
    "b": 165
  },
  "hsl": {
    "h": 231.683,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46075,
    "c": 0.13999,
    "h": 272.8
  },
  "luminance": 0.09255
}

Semantic roles & 50–950 ramp

primary
#404EA5
secondary
#BEB683
accent
#C254D4
background
#F8F7FB
surface
#EFEEF7
border
#CAC9D0
text
#0B0A12
muted
#7C7C81

Preview Lab

Preview with #404EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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