#405FD4#405FD4

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

Color values

HEX#405FD4
RGBrgb(64, 95, 212)
HSLhsl(227, 63%, 54%)
HSVhsv(227, 70%, 83%)
CMYKcmyk(69.8%, 55.2%, 0%, 16.9%)
CIE-LABlab(44.27, 27.80, -63.64)
CIE-LCHlch(44.27, 69.45, 293.60°)
OKLaboklab(53% -0.0056 -0.1833)
OKLCHoklch(53% 0.183 268.3)
XYZxyz(18.0861, 14.0261, 64.0287)
Luminance0.1403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FD4 #D4B540
analogous
#40A9D4 #405FD4 #6B40D4
triadic
#405FD4 #D4405F #5FD440
tetradic
#405FD4 #D440A9 #D4B540 #40D46B
square
#405FD4 #D440A9 #D4B540 #40D46B
split-complementary
#405FD4 #D46B40 #A9D440
monochromatic
#1C317D #2744AF #405FD4 #7289DF #A4B3EA

Accessibility & contrast

On white

5.52
#405FD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#405FD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FD4
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FD4#FFFFFF#000000##FFFFFF
##405FD41.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070D8
Deuteranopia (green-blind)
#0062D2
Tritanopia (blue-blind)
#007B90
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #405fd4;
/* rgb */ color: rgb(64, 95, 212);
/* oklch */ color: oklch(53.0% 0.183 268.3);
Tailwind
colors: {
  custom: {
    50: '#878ce2',
    500: '#405fd4',
    950: '#000000',
  },
}
SCSS
$custom: #405fd4;
$custom-light: #878ce2;
$custom-dark: #000000;
JSON
{
  "hex": "#405fd4",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 212
  },
  "hsl": {
    "h": 227.432,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.52999,
    "c": 0.18335,
    "h": 268.3
  },
  "luminance": 0.14028
}

Semantic roles & 50–950 ramp

primary
#405FD4
secondary
#D7CA98
accent
#C442E6
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #405FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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