#404EA1#404EA1

#404EA1 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.8% C 0.134 H 272.8°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#404EA1
RGBrgb(64, 78, 161)
HSLhsl(231, 43%, 44%)
HSVhsv(231, 60%, 63%)
CMYKcmyk(60.2%, 51.6%, 0%, 36.9%)
CIE-LABlab(36.20, 20.65, -46.85)
CIE-LCHlch(36.20, 51.20, 293.79°)
OKLaboklab(45.78% 0.0065 -0.1341)
OKLCHoklch(45.78% 0.134 272.8)
XYZxyz(11.2696, 9.1111, 34.8760)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404EA1 #A19340
analogous
#407FA1 #404EA1 #6340A1
triadic
#404EA1 #A1404E #4EA140
tetradic
#404EA1 #A1407F #A19340 #40A163
square
#404EA1 #A1407F #A19340 #40A163
split-complementary
#404EA1 #A16340 #7FA140
monochromatic
#1D2449 #2F3975 #404EA1 #5F6DBF #8B95D1

Accessibility & contrast

On white

7.44
#404EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#404EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404EA1
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404EA1#FFFFFF#000000##FFFFFF
##404EA11.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215AA4
Deuteranopia (green-blind)
#0A519F
Tritanopia (blue-blind)
#006170
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #404ea1;
/* rgb */ color: rgb(64, 78, 161);
/* oklch */ color: oklch(45.8% 0.134 272.8);
Tailwind
colors: {
  custom: {
    50: '#7e7fbd',
    500: '#404ea1',
    950: '#000000',
  },
}
SCSS
$custom: #404ea1;
$custom-light: #7e7fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#404ea1",
  "rgb": {
    "r": 64,
    "g": 78,
    "b": 161
  },
  "hsl": {
    "h": 231.34,
    "s": 43.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45783,
    "c": 0.13423,
    "h": 272.8
  },
  "luminance": 0.09112
}

Semantic roles & 50–950 ramp

primary
#404EA1
secondary
#BCB381
accent
#C155D3
background
#F8F7FB
surface
#EFEEF7
border
#CAC9D0
text
#0B0A12
muted
#7C7C81

Preview Lab

Preview with #404EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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