#404EA8#404EA8

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

Color values

HEX#404EA8
RGBrgb(64, 78, 168)
HSLhsl(232, 45%, 45%)
HSVhsv(232, 62%, 66%)
CMYKcmyk(61.9%, 53.6%, 0%, 34.1%)
CIE-LABlab(36.68, 23.10, -50.26)
CIE-LCHlch(36.68, 55.31, 294.69°)
OKLaboklab(46.3% 0.0071 -0.1441)
OKLCHoklch(46.3% 0.144 272.8)
XYZxyz(11.9043, 9.3650, 38.2185)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404EA8 #A89A40
analogous
#4082A8 #404EA8 #6640A8
triadic
#404EA8 #A8404E #4EA840
tetradic
#404EA8 #A84082 #A89A40 #40A866
square
#404EA8 #A84082 #A89A40 #40A866
split-complementary
#404EA8 #A86640 #82A840
monochromatic
#1E254F #2F397C #404EA8 #626FC3 #8E98D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##404EA8#FFFFFF#000000##FFFFFF
##404EA81.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)
#165BAB
Deuteranopia (green-blind)
#0052A6
Tritanopia (blue-blind)
#006373
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #404ea8;
/* rgb */ color: rgb(64, 78, 168);
/* oklch */ color: oklch(46.3% 0.144 272.8);
Tailwind
colors: {
  custom: {
    50: '#7f7fc2',
    500: '#404ea8',
    950: '#000000',
  },
}
SCSS
$custom: #404ea8;
$custom-light: #7f7fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#404ea8",
  "rgb": {
    "r": 64,
    "g": 78,
    "b": 168
  },
  "hsl": {
    "h": 231.923,
    "s": 44.828,
    "l": 45.49
  },
  "oklch": {
    "l": 0.46298,
    "c": 0.14427,
    "h": 272.8
  },
  "luminance": 0.09366
}

Semantic roles & 50–950 ramp

primary
#404EA8
secondary
#BFB785
accent
#C353D5
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A12
muted
#7C7C81

Preview Lab

Preview with #404EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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