#404AB4#404AB4

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

Color values

HEX#404AB4
RGBrgb(64, 74, 180)
HSLhsl(235, 48%, 48%)
HSVhsv(235, 64%, 71%)
CMYKcmyk(64.4%, 58.9%, 0%, 29.4%)
CIE-LABlab(36.52, 29.89, -57.63)
CIE-LCHlch(36.52, 64.92, 297.42°)
OKLaboklab(46.46% 0.0113 -0.1658)
OKLCHoklch(46.46% 0.166 273.9)
XYZxyz(12.7986, 9.2817, 44.2883)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404AB4 #B4AA40
analogous
#4084B4 #404AB4 #7040B4
triadic
#404AB4 #B4404A #4AB440
tetradic
#404AB4 #B44084 #B4AA40 #40B470
square
#404AB4 #B44084 #B4AA40 #40B470
split-complementary
#404AB4 #B47040 #84B440
monochromatic
#20255A #303787 #404AB4 #6870C9 #959BD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##404AB4#FFFFFF#000000##FFFFFF
##404AB41.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)
#005BB8
Deuteranopia (green-blind)
#0051B2
Tritanopia (blue-blind)
#006478
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #404ab4;
/* rgb */ color: rgb(64, 74, 180);
/* oklch */ color: oklch(46.5% 0.166 273.9);
Tailwind
colors: {
  custom: {
    50: '#827ccb',
    500: '#404ab4',
    950: '#000000',
  },
}
SCSS
$custom: #404ab4;
$custom-light: #827ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#404ab4",
  "rgb": {
    "r": 64,
    "g": 74,
    "b": 180
  },
  "hsl": {
    "h": 234.828,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.4646,
    "c": 0.16622,
    "h": 273.9
  },
  "luminance": 0.09283
}

Semantic roles & 50–950 ramp

primary
#404AB4
secondary
#C5C08B
accent
#CC51D7
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #404AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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