#404AAF#404AAF

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

Color values

HEX#404AAF
RGBrgb(64, 74, 175)
HSLhsl(235, 46%, 47%)
HSVhsv(235, 63%, 69%)
CMYKcmyk(63.4%, 57.7%, 0%, 31.4%)
CIE-LABlab(36.14, 28.15, -55.29)
CIE-LCHlch(36.14, 62.04, 296.98°)
OKLaboklab(46.06% 0.0113 -0.1589)
OKLCHoklch(46.06% 0.159 274.1)
XYZxyz(12.2984, 9.0817, 41.6540)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404AAF #AFA540
analogous
#4082AF #404AAF #6E40AF
triadic
#404AAF #AF404A #4AAF40
tetradic
#404AAF #AF4082 #AFA540 #40AF6E
square
#404AAF #AF4082 #AFA540 #40AF6E
split-complementary
#404AAF #AF6E40 #82AF40
monochromatic
#1F2455 #303782 #404AAF #656EC7 #9298D7

Accessibility & contrast

On white

7.46
#404AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #404AAF
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404AAF#FFFFFF#000000##FFFFFF
##404AAF1.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB2
Deuteranopia (green-blind)
#0050AD
Tritanopia (blue-blind)
#006275
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #404aaf;
/* rgb */ color: rgb(64, 74, 175);
/* oklch */ color: oklch(46.1% 0.159 274.1);
Tailwind
colors: {
  custom: {
    50: '#817cc8',
    500: '#404aaf',
    950: '#000000',
  },
}
SCSS
$custom: #404aaf;
$custom-light: #817cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#404aaf",
  "rgb": {
    "r": 64,
    "g": 74,
    "b": 175
  },
  "hsl": {
    "h": 234.595,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46058,
    "c": 0.15935,
    "h": 274.1
  },
  "luminance": 0.09083
}

Semantic roles & 50–950 ramp

primary
#404AAF
secondary
#C3BD88
accent
#CA52D6
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #404AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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