#404ED9#404ED9

#404ED9 is a mid, highly saturated blue. Relative luminance 0.115; OKLCH L 50.3% C 0.210 H 271.9°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#404ED9
RGBrgb(64, 78, 217)
HSLhsl(235, 67%, 55%)
HSVhsv(235, 71%, 85%)
CMYKcmyk(70.5%, 64.1%, 0%, 14.9%)
CIE-LABlab(40.49, 40.21, -72.68)
CIE-LCHlch(40.49, 83.06, 298.95°)
OKLaboklab(50.31% 0.0069 -0.21)
OKLCHoklch(50.31% 0.21 271.9)
XYZxyz(17.3589, 11.5468, 66.9461)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404ED9 #D9CB40
analogous
#409AD9 #404ED9 #7F40D9
triadic
#404ED9 #D9404E #4ED940
tetradic
#404ED9 #D9409A #D9CB40 #40D97F
square
#404ED9 #D9409A #D9CB40 #40D97F
split-complementary
#404ED9 #D97F40 #9AD940
monochromatic
#1A2484 #2432B7 #404ED9 #737DE3 #A6ADED

Accessibility & contrast

On white

6.34
#404ED9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#404ED9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404ED9
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404ED9#FFFFFF#000000##FFFFFF
##404ED91.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DD
Deuteranopia (green-blind)
#0058D6
Tritanopia (blue-blind)
#00728C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #404ed9;
/* rgb */ color: rgb(64, 78, 217);
/* oklch */ color: oklch(50.3% 0.210 271.9);
Tailwind
colors: {
  custom: {
    50: '#8980e6',
    500: '#404ed9',
    950: '#000000',
  },
}
SCSS
$custom: #404ed9;
$custom-light: #8980e6;
$custom-dark: #000000;
JSON
{
  "hex": "#404ed9",
  "rgb": {
    "r": 64,
    "g": 78,
    "b": 217
  },
  "hsl": {
    "h": 234.51,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.50314,
    "c": 0.21007,
    "h": 271.9
  },
  "luminance": 0.11549
}

Semantic roles & 50–950 ramp

primary
#404ED9
secondary
#DAD59A
accent
#DA3EEA
background
#F9F7FE
surface
#F1EEFC
border
#CBC9D5
text
#0D0A16
muted
#7E7C84

Preview Lab

Preview with #404ED9

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

Preview Lab → · Contrast checker → · Palette generator →

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