#405ED4#405ED4

#405ED4 is a mid, vivid blue. Relative luminance 0.138; OKLCH L 52.8% C 0.185 H 268.5°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#405ED4
RGBrgb(64, 94, 212)
HSLhsl(228, 63%, 54%)
HSVhsv(228, 70%, 83%)
CMYKcmyk(69.8%, 55.7%, 0%, 16.9%)
CIE-LABlab(44.01, 28.44, -64.06)
CIE-LCHlch(44.01, 70.09, 293.94°)
OKLaboklab(52.81% -0.0048 -0.1845)
OKLCHoklch(52.81% 0.185 268.5)
XYZxyz(17.9966, 13.8471, 63.9989)
Luminance0.1385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405ED4 #D4B640
analogous
#40A8D4 #405ED4 #6C40D4
triadic
#405ED4 #D4405E #5ED440
tetradic
#405ED4 #D440A8 #D4B640 #40D46C
square
#405ED4 #D440A8 #D4B640 #40D46C
split-complementary
#405ED4 #D46C40 #A8D440
monochromatic
#1C307D #2743AF #405ED4 #7288DF #A4B2EA

Accessibility & contrast

On white

5.57
#405ED4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#405ED4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405ED4
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405ED4#FFFFFF#000000##FFFFFF
##405ED41.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #405ed4;
/* rgb */ color: rgb(64, 94, 212);
/* oklch */ color: oklch(52.8% 0.185 268.5);
Tailwind
colors: {
  custom: {
    50: '#878be2',
    500: '#405ed4',
    950: '#000000',
  },
}
SCSS
$custom: #405ed4;
$custom-light: #878be2;
$custom-dark: #000000;
JSON
{
  "hex": "#405ed4",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 212
  },
  "hsl": {
    "h": 227.838,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.52806,
    "c": 0.18457,
    "h": 268.5
  },
  "luminance": 0.13849
}

Semantic roles & 50–950 ramp

primary
#405ED4
secondary
#D7CB98
accent
#C542E6
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #405ED4

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

Preview Lab → · Contrast checker → · Palette generator →

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