#405DB4#405DB4

#405DB4 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.2% C 0.142 H 267.3°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#405DB4
RGBrgb(64, 93, 180)
HSLhsl(225, 48%, 48%)
HSVhsv(225, 64%, 71%)
CMYKcmyk(64.4%, 48.3%, 0%, 29.4%)
CIE-LABlab(41.55, 17.64, -49.50)
CIE-LCHlch(41.55, 52.55, 289.61°)
OKLaboklab(50.25% -0.0067 -0.1417)
OKLCHoklch(50.25% 0.142 267.3)
XYZxyz(14.2641, 12.2127, 44.7767)
Luminance0.1221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DB4 #B49740
analogous
#4097B4 #405DB4 #5D40B4
triadic
#405DB4 #B4405D #5DB440
tetradic
#405DB4 #B44097 #B49740 #40B45D
square
#405DB4 #B44097 #B49740 #40B45D
split-complementary
#405DB4 #B45D40 #97B440
monochromatic
#202E5A #304687 #405DB4 #6880C9 #95A6D9

Accessibility & contrast

On white

6.10
#405DB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#405DB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DB4
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DB4#FFFFFF#000000##FFFFFF
##405DB41.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3068B7
Deuteranopia (green-blind)
#185DB2
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405db4;
/* rgb */ color: rgb(64, 93, 180);
/* oklch */ color: oklch(50.2% 0.142 267.3);
Tailwind
colors: {
  custom: {
    50: '#818acb',
    500: '#405db4',
    950: '#000000',
  },
}
SCSS
$custom: #405db4;
$custom-light: #818acb;
$custom-dark: #000000;
JSON
{
  "hex": "#405db4",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 180
  },
  "hsl": {
    "h": 225,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50247,
    "c": 0.14184,
    "h": 267.3
  },
  "luminance": 0.12214
}

Semantic roles & 50–950 ramp

primary
#405DB4
secondary
#C5B68B
accent
#B651D7
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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