#405DD4#405DD4

#405DD4 is a mid, vivid blue. Relative luminance 0.137; OKLCH L 52.6% C 0.186 H 268.8°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#405DD4
RGBrgb(64, 93, 212)
HSLhsl(228, 63%, 54%)
HSVhsv(228, 70%, 83%)
CMYKcmyk(69.8%, 56.1%, 0%, 16.9%)
CIE-LABlab(43.76, 29.07, -64.48)
CIE-LCHlch(43.76, 70.73, 294.27°)
OKLaboklab(52.61% -0.004 -0.1857)
OKLCHoklch(52.61% 0.186 268.8)
XYZxyz(17.9083, 13.6704, 63.9694)
Luminance0.1367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DD4 #D4B740
analogous
#40A7D4 #405DD4 #6D40D4
triadic
#405DD4 #D4405D #5DD440
tetradic
#405DD4 #D440A7 #D4B740 #40D46D
square
#405DD4 #D440A7 #D4B740 #40D46D
split-complementary
#405DD4 #D46D40 #A7D440
monochromatic
#1C2F7D #2742AF #405DD4 #7287DF #A4B2EA

Accessibility & contrast

On white

5.62
#405DD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#405DD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DD4
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DD4#FFFFFF#000000##FFFFFF
##405DD41.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED8
Deuteranopia (green-blind)
#0061D2
Tritanopia (blue-blind)
#007A8F
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #405dd4;
/* rgb */ color: rgb(64, 93, 212);
/* oklch */ color: oklch(52.6% 0.186 268.8);
Tailwind
colors: {
  custom: {
    50: '#878ae2',
    500: '#405dd4',
    950: '#000000',
  },
}
SCSS
$custom: #405dd4;
$custom-light: #878ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#405dd4",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 212
  },
  "hsl": {
    "h": 228.243,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.52614,
    "c": 0.18579,
    "h": 268.8
  },
  "luminance": 0.13672
}

Semantic roles & 50–950 ramp

primary
#405DD4
secondary
#D7CB98
accent
#C642E6
background
#F9F8FE
surface
#F1F0FC
border
#CBCBD5
text
#0D0B15
muted
#7E7C84

Preview Lab

Preview with #405DD4

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

Preview Lab → · Contrast checker → · Palette generator →

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