#404EA9#404EA9

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

Color values

HEX#404EA9
RGBrgb(64, 78, 169)
HSLhsl(232, 45%, 46%)
HSVhsv(232, 62%, 66%)
CMYKcmyk(62.1%, 53.8%, 0%, 33.7%)
CIE-LABlab(36.75, 23.46, -50.74)
CIE-LCHlch(36.75, 55.90, 294.81°)
OKLaboklab(46.37% 0.0072 -0.1455)
OKLCHoklch(46.37% 0.146 272.8)
XYZxyz(11.9978, 9.4024, 38.7110)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404EA9 #A99B40
analogous
#4082A9 #404EA9 #6640A9
triadic
#404EA9 #A9404E #4EA940
tetradic
#404EA9 #A94082 #A99B40 #40A966
square
#404EA9 #A94082 #A99B40 #40A966
split-complementary
#404EA9 #A96640 #82A940
monochromatic
#1E2550 #2F3A7D #404EA9 #626FC4 #8F98D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##404EA9#FFFFFF#000000##FFFFFF
##404EA91.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)
#135BAC
Deuteranopia (green-blind)
#0052A7
Tritanopia (blue-blind)
#006374
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #404ea9;
/* rgb */ color: rgb(64, 78, 169);
/* oklch */ color: oklch(46.4% 0.146 272.8);
Tailwind
colors: {
  custom: {
    50: '#7f7fc3',
    500: '#404ea9',
    950: '#000000',
  },
}
SCSS
$custom: #404ea9;
$custom-light: #7f7fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#404ea9",
  "rgb": {
    "r": 64,
    "g": 78,
    "b": 169
  },
  "hsl": {
    "h": 232,
    "s": 45.064,
    "l": 45.686
  },
  "oklch": {
    "l": 0.46373,
    "c": 0.1457,
    "h": 272.8
  },
  "luminance": 0.09403
}

Semantic roles & 50–950 ramp

primary
#404EA9
secondary
#C0B885
accent
#C353D5
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #404EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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