#404AA4#404AA4

#404AA4 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.2% C 0.144 H 274.3°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#404AA4
RGBrgb(64, 74, 164)
HSLhsl(234, 44%, 45%)
HSVhsv(234, 61%, 64%)
CMYKcmyk(61%, 54.9%, 0%, 35.7%)
CIE-LABlab(35.34, 24.31, -50.04)
CIE-LCHlch(35.34, 55.63, 295.91°)
OKLaboklab(45.2% 0.0109 -0.1435)
OKLCHoklch(45.2% 0.144 274.3)
XYZxyz(11.2618, 8.6670, 36.1942)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404AA4 #A49A40
analogous
#407CA4 #404AA4 #6840A4
triadic
#404AA4 #A4404A #4AA440
tetradic
#404AA4 #A4407C #A49A40 #40A468
square
#404AA4 #A4407C #A49A40 #40A468
split-complementary
#404AA4 #A46840 #7CA440
monochromatic
#1E224C #2F3678 #404AA4 #606AC1 #8C93D2

Accessibility & contrast

On white

7.68
#404AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#404AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404AA4
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404AA4#FFFFFF#000000##FFFFFF
##404AA41.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C58A7
Deuteranopia (green-blind)
#004FA2
Tritanopia (blue-blind)
#005F6F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #404aa4;
/* rgb */ color: rgb(64, 74, 164);
/* oklch */ color: oklch(45.2% 0.144 274.3);
Tailwind
colors: {
  custom: {
    50: '#7f7cc0',
    500: '#404aa4',
    950: '#000000',
  },
}
SCSS
$custom: #404aa4;
$custom-light: #7f7cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#404aa4",
  "rgb": {
    "r": 64,
    "g": 74,
    "b": 164
  },
  "hsl": {
    "h": 234,
    "s": 43.86,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45201,
    "c": 0.14391,
    "h": 274.3
  },
  "luminance": 0.08668
}

Semantic roles & 50–950 ramp

primary
#404AA4
secondary
#BDB783
accent
#C754D4
background
#F8F7FB
surface
#EFEEF7
border
#CAC9D0
text
#0B0912
muted
#7C7B81

Preview Lab

Preview with #404AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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