#404EA3#404EA3

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

Color values

HEX#404EA3
RGBrgb(64, 78, 163)
HSLhsl(232, 44%, 45%)
HSVhsv(232, 61%, 64%)
CMYKcmyk(60.7%, 52.1%, 0%, 36.1%)
CIE-LABlab(36.33, 21.35, -47.83)
CIE-LCHlch(36.33, 52.38, 294.06°)
OKLaboklab(45.93% 0.0067 -0.1369)
OKLCHoklch(45.93% 0.137 272.8)
XYZxyz(11.4474, 9.1822, 35.8123)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404EA3 #A39540
analogous
#4080A3 #404EA3 #6440A3
triadic
#404EA3 #A3404E #4EA340
tetradic
#404EA3 #A34080 #A39540 #40A364
square
#404EA3 #A34080 #A39540 #40A364
split-complementary
#404EA3 #A36440 #80A340
monochromatic
#1D244B #2F3977 #404EA3 #606DC0 #8C96D2

Accessibility & contrast

On white

7.40
#404EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #404EA3
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404EA3#FFFFFF#000000##FFFFFF
##404EA31.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5AA6
Deuteranopia (green-blind)
#0351A1
Tritanopia (blue-blind)
#006271
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #404ea3;
/* rgb */ color: rgb(64, 78, 163);
/* oklch */ color: oklch(45.9% 0.137 272.8);
Tailwind
colors: {
  custom: {
    50: '#7e7fbf',
    500: '#404ea3',
    950: '#000000',
  },
}
SCSS
$custom: #404ea3;
$custom-light: #7e7fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#404ea3",
  "rgb": {
    "r": 64,
    "g": 78,
    "b": 163
  },
  "hsl": {
    "h": 231.515,
    "s": 43.612,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45928,
    "c": 0.13711,
    "h": 272.8
  },
  "luminance": 0.09183
}

Semantic roles & 50–950 ramp

primary
#404EA3
secondary
#BDB482
accent
#C154D3
background
#F8F7FB
surface
#EFEEF7
border
#CAC9D0
text
#0B0A12
muted
#7C7C81

Preview Lab

Preview with #404EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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