#404FA5#404FA5

#404FA5 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.3% C 0.139 H 272.4°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#404FA5
RGBrgb(64, 79, 165)
HSLhsl(231, 44%, 45%)
HSVhsv(231, 61%, 65%)
CMYKcmyk(61.2%, 52.1%, 0%, 35.3%)
CIE-LABlab(36.74, 21.40, -48.37)
CIE-LCHlch(36.74, 52.89, 293.87°)
OKLaboklab(46.28% 0.0058 -0.1385)
OKLCHoklch(46.28% 0.139 272.4)
XYZxyz(11.6996, 9.3976, 36.7874)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404FA5 #A59640
analogous
#4082A5 #404FA5 #6340A5
triadic
#404FA5 #A5404F #4FA540
tetradic
#404FA5 #A54082 #A59640 #40A563
square
#404FA5 #A54082 #A59640 #40A563
split-complementary
#404FA5 #A56340 #82A540
monochromatic
#1E254D #2F3A79 #404FA5 #616FC2 #8D97D3

Accessibility & contrast

On white

7.29
#404FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#404FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404FA5
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404FA5#FFFFFF#000000##FFFFFF
##404FA51.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5BA8
Deuteranopia (green-blind)
#0152A3
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #404fa5;
/* rgb */ color: rgb(64, 79, 165);
/* oklch */ color: oklch(46.3% 0.139 272.4);
Tailwind
colors: {
  custom: {
    50: '#7f80c0',
    500: '#404fa5',
    950: '#000000',
  },
}
SCSS
$custom: #404fa5;
$custom-light: #7f80c0;
$custom-dark: #000000;
JSON
{
  "hex": "#404fa5",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 165
  },
  "hsl": {
    "h": 231.089,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46278,
    "c": 0.13865,
    "h": 272.4
  },
  "luminance": 0.09399
}

Semantic roles & 50–950 ramp

primary
#404FA5
secondary
#BEB583
accent
#C154D4
background
#F8F7FB
surface
#EFEEF7
border
#CAC9D0
text
#0B0A12
muted
#7C7C81

Preview Lab

Preview with #404FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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