#404AB0#404AB0

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

Color values

HEX#404AB0
RGBrgb(64, 74, 176)
HSLhsl(235, 47%, 47%)
HSVhsv(235, 64%, 69%)
CMYKcmyk(63.6%, 58%, 0%, 31%)
CIE-LABlab(36.22, 28.50, -55.76)
CIE-LCHlch(36.22, 62.62, 297.07°)
OKLaboklab(46.14% 0.0113 -0.1603)
OKLCHoklch(46.14% 0.161 274)
XYZxyz(12.3970, 9.1211, 42.1731)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404AB0 #B0A640
analogous
#4082B0 #404AB0 #6E40B0
triadic
#404AB0 #B0404A #4AB040
tetradic
#404AB0 #B04082 #B0A640 #40B06E
square
#404AB0 #B04082 #B0A640 #40B06E
split-complementary
#404AB0 #B06E40 #82B040
monochromatic
#1F2456 #303783 #404AB0 #666FC7 #9399D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##404AB0#FFFFFF#000000##FFFFFF
##404AB01.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)
#005AB3
Deuteranopia (green-blind)
#0050AE
Tritanopia (blue-blind)
#006376
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #404ab0;
/* rgb */ color: rgb(64, 74, 176);
/* oklch */ color: oklch(46.1% 0.161 274.0);
Tailwind
colors: {
  custom: {
    50: '#817cc8',
    500: '#404ab0',
    950: '#000000',
  },
}
SCSS
$custom: #404ab0;
$custom-light: #817cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#404ab0",
  "rgb": {
    "r": 64,
    "g": 74,
    "b": 176
  },
  "hsl": {
    "h": 234.643,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46138,
    "c": 0.16074,
    "h": 274
  },
  "luminance": 0.09122
}

Semantic roles & 50–950 ramp

primary
#404AB0
secondary
#C3BE89
accent
#CA51D6
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #404AB0

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

Preview Lab → · Contrast checker → · Palette generator →

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