#404CAF#404CAF

#404CAF is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.4% C 0.157 H 273.4°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#404CAF
RGBrgb(64, 76, 175)
HSLhsl(234, 46%, 47%)
HSVhsv(234, 63%, 69%)
CMYKcmyk(63.4%, 56.6%, 0%, 31.4%)
CIE-LABlab(36.66, 26.86, -54.45)
CIE-LCHlch(36.66, 60.72, 296.25°)
OKLaboklab(46.44% 0.0094 -0.1565)
OKLCHoklch(46.44% 0.157 273.4)
XYZxyz(12.4341, 9.3530, 41.6992)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404CAF #AFA340
analogous
#4083AF #404CAF #6C40AF
triadic
#404CAF #AF404C #4CAF40
tetradic
#404CAF #AF4083 #AFA340 #40AF6C
square
#404CAF #AF4083 #AFA340 #40AF6C
split-complementary
#404CAF #AF6C40 #83AF40
monochromatic
#1F2555 #303982 #404CAF #6570C7 #929AD7

Accessibility & contrast

On white

7.32
#404CAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#404CAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404CAF
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404CAF#FFFFFF#000000##FFFFFF
##404CAF1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB2
Deuteranopia (green-blind)
#0051AD
Tritanopia (blue-blind)
#006476
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #404caf;
/* rgb */ color: rgb(64, 76, 175);
/* oklch */ color: oklch(46.4% 0.157 273.4);
Tailwind
colors: {
  custom: {
    50: '#817dc8',
    500: '#404caf',
    950: '#000000',
  },
}
SCSS
$custom: #404caf;
$custom-light: #817dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#404caf",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 175
  },
  "hsl": {
    "h": 233.514,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46441,
    "c": 0.15676,
    "h": 273.4
  },
  "luminance": 0.09354
}

Semantic roles & 50–950 ramp

primary
#404CAF
secondary
#C3BC88
accent
#C852D6
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #404CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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