#404EA6#404EA6

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

Color values

HEX#404EA6
RGBrgb(64, 78, 166)
HSLhsl(232, 44%, 45%)
HSVhsv(232, 61%, 65%)
CMYKcmyk(61.4%, 53%, 0%, 34.9%)
CIE-LABlab(36.54, 22.40, -49.29)
CIE-LCHlch(36.54, 54.14, 294.44°)
OKLaboklab(46.15% 0.007 -0.1412)
OKLCHoklch(46.15% 0.141 272.8)
XYZxyz(11.7194, 9.2910, 37.2448)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404EA6 #A69840
analogous
#4081A6 #404EA6 #6540A6
triadic
#404EA6 #A6404E #4EA640
tetradic
#404EA6 #A64081 #A69840 #40A665
square
#404EA6 #A64081 #A69840 #40A665
split-complementary
#404EA6 #A66540 #81A640
monochromatic
#1E244E #2F397A #404EA6 #616EC2 #8D97D3

Accessibility & contrast

On white

7.35
#404EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#404EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404EA6
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404EA6#FFFFFF#000000##FFFFFF
##404EA61.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195BA9
Deuteranopia (green-blind)
#0052A4
Tritanopia (blue-blind)
#006272
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #404ea6;
/* rgb */ color: rgb(64, 78, 166);
/* oklch */ color: oklch(46.1% 0.141 272.8);
Tailwind
colors: {
  custom: {
    50: '#7f7fc1',
    500: '#404ea6',
    950: '#000000',
  },
}
SCSS
$custom: #404ea6;
$custom-light: #7f7fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#404ea6",
  "rgb": {
    "r": 64,
    "g": 78,
    "b": 166
  },
  "hsl": {
    "h": 231.765,
    "s": 44.348,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46149,
    "c": 0.14142,
    "h": 272.8
  },
  "luminance": 0.09292
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #404EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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