#405ED5#405ED5

#405ED5 is a mid, vivid blue. Relative luminance 0.139; OKLCH L 52.9% C 0.186 H 268.5°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#405ED5
RGBrgb(64, 94, 213)
HSLhsl(228, 64%, 54%)
HSVhsv(228, 70%, 84%)
CMYKcmyk(70%, 55.9%, 0%, 16.5%)
CIE-LABlab(44.09, 28.79, -64.52)
CIE-LCHlch(44.09, 70.65, 294.05°)
OKLaboklab(52.88% -0.0047 -0.1858)
OKLCHoklch(52.88% 0.186 268.5)
XYZxyz(18.1232, 13.8977, 64.6653)
Luminance0.1390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405ED5 #D5B740
analogous
#40A9D5 #405ED5 #6C40D5
triadic
#405ED5 #D5405E #5ED540
tetradic
#405ED5 #D540A9 #D5B740 #40D56C
square
#405ED5 #D540A9 #D5B740 #40D56C
split-complementary
#405ED5 #D56C40 #A9D540
monochromatic
#1C307F #2743B1 #405ED5 #7288E0 #A4B3EB

Accessibility & contrast

On white

5.56
#405ED5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#405ED5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405ED5
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405ED5#FFFFFF#000000##FFFFFF
##405ED51.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD9
Deuteranopia (green-blind)
#0062D3
Tritanopia (blue-blind)
#007B90
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #405ed5;
/* rgb */ color: rgb(64, 94, 213);
/* oklch */ color: oklch(52.9% 0.186 268.5);
Tailwind
colors: {
  custom: {
    50: '#878be3',
    500: '#405ed5',
    950: '#000000',
  },
}
SCSS
$custom: #405ed5;
$custom-light: #878be3;
$custom-dark: #000000;
JSON
{
  "hex": "#405ed5",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 213
  },
  "hsl": {
    "h": 227.919,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.52884,
    "c": 0.1859,
    "h": 268.5
  },
  "luminance": 0.13899
}

Semantic roles & 50–950 ramp

primary
#405ED5
secondary
#D8CB99
accent
#C641E7
background
#F9F8FE
surface
#F1F0FC
border
#CBCBD5
text
#0D0B15
muted
#7E7C84

Preview Lab

Preview with #405ED5

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

Preview Lab → · Contrast checker → · Palette generator →

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