#404AB5#404AB5

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

Color values

HEX#404AB5
RGBrgb(64, 74, 181)
HSLhsl(235, 48%, 48%)
HSVhsv(235, 65%, 71%)
CMYKcmyk(64.6%, 59.1%, 0%, 29%)
CIE-LABlab(36.60, 30.24, -58.10)
CIE-LCHlch(36.60, 65.50, 297.50°)
OKLaboklab(46.54% 0.0113 -0.1672)
OKLCHoklch(46.54% 0.168 273.9)
XYZxyz(12.9009, 9.3226, 44.8267)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404AB5 #B5AB40
analogous
#4084B5 #404AB5 #7040B5
triadic
#404AB5 #B5404A #4AB540
tetradic
#404AB5 #B54084 #B5AB40 #40B570
square
#404AB5 #B54084 #B5AB40 #40B570
split-complementary
#404AB5 #B57040 #84B540
monochromatic
#20255B #303888 #404AB5 #6871CA #969BDA

Accessibility & contrast

On white

7.33
#404AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #404AB5
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404AB5#FFFFFF#000000##FFFFFF
##404AB51.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB9
Deuteranopia (green-blind)
#0051B3
Tritanopia (blue-blind)
#006478
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #404ab5;
/* rgb */ color: rgb(64, 74, 181);
/* oklch */ color: oklch(46.5% 0.168 273.9);
Tailwind
colors: {
  custom: {
    50: '#827ccc',
    500: '#404ab5',
    950: '#000000',
  },
}
SCSS
$custom: #404ab5;
$custom-light: #827ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#404ab5",
  "rgb": {
    "r": 64,
    "g": 74,
    "b": 181
  },
  "hsl": {
    "h": 234.872,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46541,
    "c": 0.16759,
    "h": 273.9
  },
  "luminance": 0.09324
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #404AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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