#404EA7#404EA7

#404EA7 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.2% C 0.143 H 272.8°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#404EA7
RGBrgb(64, 78, 167)
HSLhsl(232, 45%, 45%)
HSVhsv(232, 62%, 65%)
CMYKcmyk(61.7%, 53.3%, 0%, 34.5%)
CIE-LABlab(36.61, 22.75, -49.77)
CIE-LCHlch(36.61, 54.73, 294.57°)
OKLaboklab(46.22% 0.007 -0.1427)
OKLCHoklch(46.22% 0.143 272.8)
XYZxyz(11.8115, 9.3278, 37.7297)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404EA7 #A79940
analogous
#4081A7 #404EA7 #6640A7
triadic
#404EA7 #A7404E #4EA740
tetradic
#404EA7 #A74081 #A79940 #40A766
square
#404EA7 #A74081 #A79940 #40A766
split-complementary
#404EA7 #A76640 #81A740
monochromatic
#1E254F #2F397B #404EA7 #626FC3 #8E97D4

Accessibility & contrast

On white

7.33
#404EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #404EA7
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404EA7#FFFFFF#000000##FFFFFF
##404EA71.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175BAA
Deuteranopia (green-blind)
#0052A5
Tritanopia (blue-blind)
#006373
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #404ea7;
/* rgb */ color: rgb(64, 78, 167);
/* oklch */ color: oklch(46.2% 0.143 272.8);
Tailwind
colors: {
  custom: {
    50: '#7f7fc2',
    500: '#404ea7',
    950: '#000000',
  },
}
SCSS
$custom: #404ea7;
$custom-light: #7f7fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#404ea7",
  "rgb": {
    "r": 64,
    "g": 78,
    "b": 167
  },
  "hsl": {
    "h": 231.845,
    "s": 44.589,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46224,
    "c": 0.14285,
    "h": 272.8
  },
  "luminance": 0.09329
}

Semantic roles & 50–950 ramp

primary
#404EA7
secondary
#BFB784
accent
#C354D4
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A12
muted
#7C7C81

Preview Lab

Preview with #404EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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