#405FD9#405FD9

#405FD9 is a mid, vivid blue. Relative luminance 0.143; OKLCH L 53.4% C 0.190 H 268.4°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#405FD9
RGBrgb(64, 95, 217)
HSLhsl(228, 67%, 55%)
HSVhsv(228, 71%, 85%)
CMYKcmyk(70.5%, 56.2%, 0%, 14.9%)
CIE-LABlab(44.64, 29.59, -65.91)
CIE-LCHlch(44.64, 72.24, 294.18°)
OKLaboklab(53.39% -0.0053 -0.1899)
OKLCHoklch(53.39% 0.19 268.4)
XYZxyz(18.7266, 14.2823, 67.4020)
Luminance0.1428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FD9 #D9BA40
analogous
#40ACD9 #405FD9 #6D40D9
triadic
#405FD9 #D9405F #5FD940
tetradic
#405FD9 #D940AC #D9BA40 #40D96D
square
#405FD9 #D940AC #D9BA40 #40D96D
split-complementary
#405FD9 #D96D40 #ACD940
monochromatic
#1A3084 #2442B7 #405FD9 #738AE3 #A6B5ED

Accessibility & contrast

On white

5.44
#405FD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#405FD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FD9
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FD9#FFFFFF#000000##FFFFFF
##405FD91.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DD
Deuteranopia (green-blind)
#0063D7
Tritanopia (blue-blind)
#007D93
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #405fd9;
/* rgb */ color: rgb(64, 95, 217);
/* oklch */ color: oklch(53.4% 0.190 268.4);
Tailwind
colors: {
  custom: {
    50: '#888ce6',
    500: '#405fd9',
    950: '#000000',
  },
}
SCSS
$custom: #405fd9;
$custom-light: #888ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#405fd9",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 217
  },
  "hsl": {
    "h": 227.843,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.53388,
    "c": 0.19,
    "h": 268.4
  },
  "luminance": 0.14284
}

Semantic roles & 50–950 ramp

primary
#405FD9
secondary
#DACD9A
accent
#C73EEA
background
#F9F8FE
surface
#F1F0FC
border
#CBCBD5
text
#0D0C16
muted
#7E7D84

Preview Lab

Preview with #405FD9

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

Preview Lab → · Contrast checker → · Palette generator →

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