#405ED9#405ED9

#405ED9 is a mid, vivid blue. Relative luminance 0.141; OKLCH L 53.2% C 0.191 H 268.6°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#405ED9
RGBrgb(64, 94, 217)
HSLhsl(228, 67%, 55%)
HSVhsv(228, 71%, 85%)
CMYKcmyk(70.5%, 56.7%, 0%, 14.9%)
CIE-LABlab(44.38, 30.22, -66.32)
CIE-LCHlch(44.38, 72.88, 294.50°)
OKLaboklab(53.2% -0.0046 -0.1911)
OKLCHoklch(53.2% 0.191 268.6)
XYZxyz(18.6371, 14.1033, 67.3722)
Luminance0.1411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405ED9 #D9BB40
analogous
#40ABD9 #405ED9 #6E40D9
triadic
#405ED9 #D9405E #5ED940
tetradic
#405ED9 #D940AB #D9BB40 #40D96E
square
#405ED9 #D940AB #D9BB40 #40D96E
split-complementary
#405ED9 #D96E40 #ABD940
monochromatic
#1A2F84 #2441B7 #405ED9 #7389E3 #A6B4ED

Accessibility & contrast

On white

5.50
#405ED9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#405ED9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405ED9
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405ED9#FFFFFF#000000##FFFFFF
##405ED91.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DD
Deuteranopia (green-blind)
#0062D7
Tritanopia (blue-blind)
#007C92
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #405ed9;
/* rgb */ color: rgb(64, 94, 217);
/* oklch */ color: oklch(53.2% 0.191 268.6);
Tailwind
colors: {
  custom: {
    50: '#888be6',
    500: '#405ed9',
    950: '#000000',
  },
}
SCSS
$custom: #405ed9;
$custom-light: #888be6;
$custom-dark: #000000;
JSON
{
  "hex": "#405ed9",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 217
  },
  "hsl": {
    "h": 228.235,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.53197,
    "c": 0.1912,
    "h": 268.6
  },
  "luminance": 0.14105
}

Semantic roles & 50–950 ramp

primary
#405ED9
secondary
#DACE9A
accent
#C83EEA
background
#F9F8FE
surface
#F1F0FC
border
#CBCBD5
text
#0D0C16
muted
#7E7D84

Preview Lab

Preview with #405ED9

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

Preview Lab → · Contrast checker → · Palette generator →

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