#405AD6#405AD6

#405AD6 is a mid, vivid blue. Relative luminance 0.133; OKLCH L 52.2% C 0.192 H 269.5°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#405AD6
RGBrgb(64, 90, 214)
HSLhsl(230, 65%, 55%)
HSVhsv(230, 70%, 84%)
CMYKcmyk(70.1%, 57.9%, 0%, 16.1%)
CIE-LABlab(43.15, 31.68, -66.62)
CIE-LCHlch(43.15, 73.77, 295.43°)
OKLaboklab(52.2% -0.0016 -0.1921)
OKLCHoklch(52.2% 0.192 269.5)
XYZxyz(17.9040, 13.2556, 65.2203)
Luminance0.1326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405AD6 #D6BC40
analogous
#40A5D6 #405AD6 #7140D6
triadic
#405AD6 #D6405A #5AD640
tetradic
#405AD6 #D640A5 #D6BC40 #40D671
square
#405AD6 #D640A5 #D6BC40 #40D671
split-complementary
#405AD6 #D67140 #A5D640
monochromatic
#1B2D80 #263FB2 #405AD6 #7286E1 #A5B1EC

Accessibility & contrast

On white

5.75
#405AD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#405AD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405AD6
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405AD6#FFFFFF#000000##FFFFFF
##405AD61.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDA
Deuteranopia (green-blind)
#005FD4
Tritanopia (blue-blind)
#00798F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #405ad6;
/* rgb */ color: rgb(64, 90, 214);
/* oklch */ color: oklch(52.2% 0.192 269.5);
Tailwind
colors: {
  custom: {
    50: '#8788e4',
    500: '#405ad6',
    950: '#000000',
  },
}
SCSS
$custom: #405ad6;
$custom-light: #8788e4;
$custom-dark: #000000;
JSON
{
  "hex": "#405ad6",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 214
  },
  "hsl": {
    "h": 229.6,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.52204,
    "c": 0.19208,
    "h": 269.5
  },
  "luminance": 0.13257
}

Semantic roles & 50–950 ramp

primary
#405AD6
secondary
#D9CE99
accent
#CB40E8
background
#F9F8FE
surface
#F1EFFC
border
#CBCAD5
text
#0D0B16
muted
#7E7C84

Preview Lab

Preview with #405AD6

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

Preview Lab → · Contrast checker → · Palette generator →

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