#405BD6#405BD6

#405BD6 is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.4% C 0.191 H 269.3°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#405BD6
RGBrgb(64, 91, 214)
HSLhsl(229, 65%, 55%)
HSVhsv(229, 70%, 84%)
CMYKcmyk(70.1%, 57.5%, 0%, 16.1%)
CIE-LABlab(43.40, 31.05, -66.21)
CIE-LCHlch(43.40, 73.13, 295.13°)
OKLaboklab(52.39% -0.0024 -0.1908)
OKLCHoklch(52.39% 0.191 269.3)
XYZxyz(17.9889, 13.4254, 65.2486)
Luminance0.1343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BD6 #D6BB40
analogous
#40A6D6 #405BD6 #7040D6
triadic
#405BD6 #D6405B #5BD640
tetradic
#405BD6 #D640A6 #D6BB40 #40D670
square
#405BD6 #D640A6 #D6BB40 #40D670
split-complementary
#405BD6 #D67040 #A6D640
monochromatic
#1B2E80 #2640B2 #405BD6 #7286E1 #A5B2EC

Accessibility & contrast

On white

5.70
#405BD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#405BD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BD6
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BD6#FFFFFF#000000##FFFFFF
##405BD61.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDA
Deuteranopia (green-blind)
#0060D4
Tritanopia (blue-blind)
#007990
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #405bd6;
/* rgb */ color: rgb(64, 91, 214);
/* oklch */ color: oklch(52.4% 0.191 269.3);
Tailwind
colors: {
  custom: {
    50: '#8789e4',
    500: '#405bd6',
    950: '#000000',
  },
}
SCSS
$custom: #405bd6;
$custom-light: #8789e4;
$custom-dark: #000000;
JSON
{
  "hex": "#405bd6",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 214
  },
  "hsl": {
    "h": 229.2,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.52392,
    "c": 0.19086,
    "h": 269.3
  },
  "luminance": 0.13427
}

Semantic roles & 50–950 ramp

primary
#405BD6
secondary
#D9CD99
accent
#C940E8
background
#F9F8FE
surface
#F1F0FC
border
#CBCBD5
text
#0D0B16
muted
#7E7C84

Preview Lab

Preview with #405BD6

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

Preview Lab → · Contrast checker → · Palette generator →

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