#405FD6#405FD6

#405FD6 is a mid, vivid blue. Relative luminance 0.141; OKLCH L 53.2% C 0.186 H 268.3°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#405FD6
RGBrgb(64, 95, 214)
HSLhsl(228, 65%, 55%)
HSVhsv(228, 70%, 84%)
CMYKcmyk(70.1%, 55.6%, 0%, 16.1%)
CIE-LABlab(44.42, 28.52, -64.55)
CIE-LCHlch(44.42, 70.57, 293.83°)
OKLaboklab(53.15% -0.0055 -0.1859)
OKLCHoklch(53.15% 0.186 268.3)
XYZxyz(18.3400, 14.1276, 65.3657)
Luminance0.1413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FD6 #D6B740
analogous
#40AAD6 #405FD6 #6C40D6
triadic
#405FD6 #D6405F #5FD640
tetradic
#405FD6 #D640AA #D6B740 #40D66C
square
#405FD6 #D640AA #D6B740 #40D66C
split-complementary
#405FD6 #D66C40 #AAD640
monochromatic
#1B3080 #2643B2 #405FD6 #7289E1 #A5B3EC

Accessibility & contrast

On white

5.49
#405FD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#405FD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FD6
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FD6#FFFFFF#000000##FFFFFF
##405FD61.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DA
Deuteranopia (green-blind)
#0062D4
Tritanopia (blue-blind)
#007C91
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #405fd6;
/* rgb */ color: rgb(64, 95, 214);
/* oklch */ color: oklch(53.2% 0.186 268.3);
Tailwind
colors: {
  custom: {
    50: '#878ce3',
    500: '#405fd6',
    950: '#000000',
  },
}
SCSS
$custom: #405fd6;
$custom-light: #878ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#405fd6",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 214
  },
  "hsl": {
    "h": 227.6,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.53154,
    "c": 0.18602,
    "h": 268.3
  },
  "luminance": 0.14129
}

Semantic roles & 50–950 ramp

primary
#405FD6
secondary
#D9CC99
accent
#C540E8
background
#F9F8FE
surface
#F1F0FC
border
#CBCBD5
text
#0D0C16
muted
#7E7D84

Preview Lab

Preview with #405FD6

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

Preview Lab → · Contrast checker → · Palette generator →

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