#404EA4#404EA4

#404EA4 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.0% C 0.139 H 272.8°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#404EA4
RGBrgb(64, 78, 164)
HSLhsl(232, 44%, 45%)
HSVhsv(232, 61%, 64%)
CMYKcmyk(61%, 52.4%, 0%, 35.7%)
CIE-LABlab(36.40, 21.70, -48.32)
CIE-LCHlch(36.40, 52.96, 294.19°)
OKLaboklab(46% 0.0068 -0.1384)
OKLCHoklch(46% 0.139 272.8)
XYZxyz(11.5374, 9.2182, 36.2861)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404EA4 #A49640
analogous
#4080A4 #404EA4 #6440A4
triadic
#404EA4 #A4404E #4EA440
tetradic
#404EA4 #A44080 #A49640 #40A464
square
#404EA4 #A44080 #A49640 #40A464
split-complementary
#404EA4 #A46440 #80A440
monochromatic
#1E244C #2F3978 #404EA4 #606EC1 #8C96D2

Accessibility & contrast

On white

7.38
#404EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#404EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404EA4
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404EA4#FFFFFF#000000##FFFFFF
##404EA41.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5AA7
Deuteranopia (green-blind)
#0051A2
Tritanopia (blue-blind)
#006271
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #404ea4;
/* rgb */ color: rgb(64, 78, 164);
/* oklch */ color: oklch(46.0% 0.139 272.8);
Tailwind
colors: {
  custom: {
    50: '#7e7fc0',
    500: '#404ea4',
    950: '#000000',
  },
}
SCSS
$custom: #404ea4;
$custom-light: #7e7fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#404ea4",
  "rgb": {
    "r": 64,
    "g": 78,
    "b": 164
  },
  "hsl": {
    "h": 231.6,
    "s": 43.86,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46002,
    "c": 0.13856,
    "h": 272.8
  },
  "luminance": 0.09219
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #404EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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