#405BD7#405BD7

#405BD7 is a mid, vivid blue. Relative luminance 0.135; OKLCH L 52.5% C 0.192 H 269.3°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#405BD7
RGBrgb(64, 91, 215)
HSLhsl(229, 65%, 55%)
HSVhsv(229, 70%, 84%)
CMYKcmyk(70.2%, 57.7%, 0%, 15.7%)
CIE-LABlab(43.47, 31.40, -66.66)
CIE-LCHlch(43.47, 73.68, 295.23°)
OKLaboklab(52.47% -0.0023 -0.1922)
OKLCHoklch(52.47% 0.192 269.3)
XYZxyz(18.1170, 13.4766, 65.9233)
Luminance0.1348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BD7 #D7BC40
analogous
#40A6D7 #405BD7 #7140D7
triadic
#405BD7 #D7405B #5BD740
tetradic
#405BD7 #D740A6 #D7BC40 #40D771
square
#405BD7 #D740A6 #D7BC40 #40D771
split-complementary
#405BD7 #D77140 #A6D740
monochromatic
#1B2D81 #263FB4 #405BD7 #7386E2 #A5B2EC

Accessibility & contrast

On white

5.68
#405BD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#405BD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BD7
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BD7#FFFFFF#000000##FFFFFF
##405BD71.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDB
Deuteranopia (green-blind)
#0060D5
Tritanopia (blue-blind)
#007A90
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #405bd7;
/* rgb */ color: rgb(64, 91, 215);
/* oklch */ color: oklch(52.5% 0.192 269.3);
Tailwind
colors: {
  custom: {
    50: '#8789e4',
    500: '#405bd7',
    950: '#000000',
  },
}
SCSS
$custom: #405bd7;
$custom-light: #8789e4;
$custom-dark: #000000;
JSON
{
  "hex": "#405bd7",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 215
  },
  "hsl": {
    "h": 229.272,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.52472,
    "c": 0.19218,
    "h": 269.3
  },
  "luminance": 0.13478
}

Semantic roles & 50–950 ramp

primary
#405BD7
secondary
#D9CE9A
accent
#CA3FE8
background
#F9F8FE
surface
#F1F0FC
border
#CBCBD5
text
#0D0B16
muted
#7E7C84

Preview Lab

Preview with #405BD7

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

Preview Lab → · Contrast checker → · Palette generator →

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