#404FA4#404FA4

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

Color values

HEX#404FA4
RGBrgb(64, 79, 164)
HSLhsl(231, 44%, 45%)
HSVhsv(231, 61%, 64%)
CMYKcmyk(61%, 51.8%, 0%, 35.7%)
CIE-LABlab(36.67, 21.05, -47.88)
CIE-LCHlch(36.67, 52.30, 293.73°)
OKLaboklab(46.21% 0.0058 -0.1371)
OKLCHoklch(46.21% 0.137 272.4)
XYZxyz(11.6090, 9.3614, 36.3099)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404FA4 #A49540
analogous
#4081A4 #404FA4 #6340A4
triadic
#404FA4 #A4404F #4FA440
tetradic
#404FA4 #A44081 #A49540 #40A463
square
#404FA4 #A44081 #A49540 #40A463
split-complementary
#404FA4 #A46340 #81A440
monochromatic
#1E254C #2F3A78 #404FA4 #606FC1 #8C97D2

Accessibility & contrast

On white

7.31
#404FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #404FA4
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404FA4#FFFFFF#000000##FFFFFF
##404FA41.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5BA7
Deuteranopia (green-blind)
#0552A2
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #404fa4;
/* rgb */ color: rgb(64, 79, 164);
/* oklch */ color: oklch(46.2% 0.137 272.4);
Tailwind
colors: {
  custom: {
    50: '#7e80bf',
    500: '#404fa4',
    950: '#000000',
  },
}
SCSS
$custom: #404fa4;
$custom-light: #7e80bf;
$custom-dark: #000000;
JSON
{
  "hex": "#404fa4",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 164
  },
  "hsl": {
    "h": 231,
    "s": 43.86,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46205,
    "c": 0.13722,
    "h": 272.4
  },
  "luminance": 0.09362
}

Semantic roles & 50–950 ramp

primary
#404FA4
secondary
#BDB483
accent
#C054D4
background
#F8F7FB
surface
#EFEEF7
border
#CAC9D0
text
#0B0A12
muted
#7C7C81

Preview Lab

Preview with #404FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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