#405ED6#405ED6

#405ED6 is a mid, vivid blue. Relative luminance 0.140; OKLCH L 53.0% C 0.187 H 268.6°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#405ED6
RGBrgb(64, 94, 214)
HSLhsl(228, 65%, 55%)
HSVhsv(228, 70%, 84%)
CMYKcmyk(70.1%, 56.1%, 0%, 16.1%)
CIE-LABlab(44.16, 29.15, -64.97)
CIE-LCHlch(44.16, 71.21, 294.17°)
OKLaboklab(52.96% -0.0047 -0.1872)
OKLCHoklch(52.96% 0.187 268.6)
XYZxyz(18.2505, 13.9486, 65.3358)
Luminance0.1395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405ED6 #D6B840
analogous
#40A9D6 #405ED6 #6D40D6
triadic
#405ED6 #D6405E #5ED640
tetradic
#405ED6 #D640A9 #D6B840 #40D66D
square
#405ED6 #D640A9 #D6B840 #40D66D
split-complementary
#405ED6 #D66D40 #A9D640
monochromatic
#1B3080 #2642B2 #405ED6 #7288E1 #A5B3EC

Accessibility & contrast

On white

5.54
#405ED6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#405ED6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405ED6
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405ED6#FFFFFF#000000##FFFFFF
##405ED61.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DA
Deuteranopia (green-blind)
#0062D4
Tritanopia (blue-blind)
#007B91
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #405ed6;
/* rgb */ color: rgb(64, 94, 214);
/* oklch */ color: oklch(53.0% 0.187 268.6);
Tailwind
colors: {
  custom: {
    50: '#878be3',
    500: '#405ed6',
    950: '#000000',
  },
}
SCSS
$custom: #405ed6;
$custom-light: #878be3;
$custom-dark: #000000;
JSON
{
  "hex": "#405ed6",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 214
  },
  "hsl": {
    "h": 228,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.52962,
    "c": 0.18723,
    "h": 268.6
  },
  "luminance": 0.1395
}

Semantic roles & 50–950 ramp

primary
#405ED6
secondary
#D9CC99
accent
#C640E8
background
#F9F8FE
surface
#F1F0FC
border
#CBCBD5
text
#0D0C16
muted
#7E7D84

Preview Lab

Preview with #405ED6

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

Preview Lab → · Contrast checker → · Palette generator →

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