#404ED5#404ED5

#404ED5 is a mid, highly saturated blue. Relative luminance 0.113; OKLCH L 50.0% C 0.205 H 272.0°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#404ED5
RGBrgb(64, 78, 213)
HSLhsl(234, 64%, 54%)
HSVhsv(234, 70%, 84%)
CMYKcmyk(70%, 63.4%, 0%, 16.5%)
CIE-LABlab(40.15, 38.83, -70.93)
CIE-LCHlch(40.15, 80.87, 298.70°)
OKLaboklab(49.96% 0.0071 -0.2048)
OKLCHoklch(49.96% 0.205 272)
XYZxyz(16.8449, 11.3412, 64.2392)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404ED5 #D5C740
analogous
#4099D5 #404ED5 #7C40D5
triadic
#404ED5 #D5404E #4ED540
tetradic
#404ED5 #D54099 #D5C740 #40D57C
square
#404ED5 #D54099 #D5C740 #40D57C
split-complementary
#404ED5 #D57C40 #99D540
monochromatic
#1C257F #2734B1 #404ED5 #727CE0 #A4ABEB

Accessibility & contrast

On white

6.42
#404ED5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#404ED5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404ED5
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404ED5#FFFFFF#000000##FFFFFF
##404ED51.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D9
Deuteranopia (green-blind)
#0058D2
Tritanopia (blue-blind)
#00718A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #404ed5;
/* rgb */ color: rgb(64, 78, 213);
/* oklch */ color: oklch(50.0% 0.205 272.0);
Tailwind
colors: {
  custom: {
    50: '#887fe3',
    500: '#404ed5',
    950: '#000000',
  },
}
SCSS
$custom: #404ed5;
$custom-light: #887fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#404ed5",
  "rgb": {
    "r": 64,
    "g": 78,
    "b": 213
  },
  "hsl": {
    "h": 234.362,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.49963,
    "c": 0.20497,
    "h": 272
  },
  "luminance": 0.11343
}

Semantic roles & 50–950 ramp

primary
#404ED5
secondary
#D8D299
accent
#D741E7
background
#F9F7FE
surface
#F1EEFC
border
#CBC9D5
text
#0D0A16
muted
#7E7C84

Preview Lab

Preview with #404ED5

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

Preview Lab → · Contrast checker → · Palette generator →

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