#405BD5#405BD5

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

Color values

HEX#405BD5
RGBrgb(64, 91, 213)
HSLhsl(229, 64%, 54%)
HSVhsv(229, 70%, 84%)
CMYKcmyk(70%, 57.3%, 0%, 16.5%)
CIE-LABlab(43.32, 30.70, -65.76)
CIE-LCHlch(43.32, 72.57, 295.02°)
OKLaboklab(52.31% -0.0024 -0.1895)
OKLCHoklch(52.31% 0.19 269.3)
XYZxyz(17.8616, 13.3745, 64.5781)
Luminance0.1338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BD5 #D5BA40
analogous
#40A5D5 #405BD5 #7040D5
triadic
#405BD5 #D5405B #5BD540
tetradic
#405BD5 #D540A5 #D5BA40 #40D570
square
#405BD5 #D540A5 #D5BA40 #40D570
split-complementary
#405BD5 #D57040 #A5D540
monochromatic
#1C2E7F #2740B1 #405BD5 #7286E0 #A4B1EB

Accessibility & contrast

On white

5.71
#405BD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#405BD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BD5
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BD5#FFFFFF#000000##FFFFFF
##405BD51.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD9
Deuteranopia (green-blind)
#0060D3
Tritanopia (blue-blind)
#00798F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #405bd5;
/* rgb */ color: rgb(64, 91, 213);
/* oklch */ color: oklch(52.3% 0.190 269.3);
Tailwind
colors: {
  custom: {
    50: '#8789e3',
    500: '#405bd5',
    950: '#000000',
  },
}
SCSS
$custom: #405bd5;
$custom-light: #8789e3;
$custom-dark: #000000;
JSON
{
  "hex": "#405bd5",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 213
  },
  "hsl": {
    "h": 229.128,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.52312,
    "c": 0.18954,
    "h": 269.3
  },
  "luminance": 0.13376
}

Semantic roles & 50–950 ramp

primary
#405BD5
secondary
#D8CD99
accent
#C941E7
background
#F9F8FE
surface
#F1F0FC
border
#CBCBD5
text
#0D0B16
muted
#7E7C84

Preview Lab

Preview with #405BD5

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

Preview Lab → · Contrast checker → · Palette generator →

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