#405DCE#405DCE

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

Color values

HEX#405DCE
RGBrgb(64, 93, 206)
HSLhsl(228, 59%, 53%)
HSVhsv(228, 69%, 81%)
CMYKcmyk(68.9%, 54.9%, 0%, 19.2%)
CIE-LABlab(43.32, 26.93, -61.74)
CIE-LCHlch(43.32, 67.36, 293.57°)
OKLaboklab(52.15% -0.0043 -0.1777)
OKLCHoklch(52.15% 0.178 268.6)
XYZxyz(17.1655, 13.3732, 60.0572)
Luminance0.1338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DCE #CEB140
analogous
#40A4CE #405DCE #6A40CE
triadic
#405DCE #CE405D #5DCE40
tetradic
#405DCE #CE40A4 #CEB140 #40CE6A
square
#405DCE #CE40A4 #CEB140 #40CE6A
split-complementary
#405DCE #CE6A40 #A4CE40
monochromatic
#1E3075 #2B44A6 #405DCE #7186DA #A1B0E7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##405DCE#FFFFFF#000000##FFFFFF
##405DCE1.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)
#006DD2
Deuteranopia (green-blind)
#0060CC
Tritanopia (blue-blind)
#00788C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #405dce;
/* rgb */ color: rgb(64, 93, 206);
/* oklch */ color: oklch(52.1% 0.178 268.6);
Tailwind
colors: {
  custom: {
    50: '#868ade',
    500: '#405dce',
    950: '#000000',
  },
}
SCSS
$custom: #405dce;
$custom-light: #868ade;
$custom-dark: #000000;
JSON
{
  "hex": "#405dce",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 206
  },
  "hsl": {
    "h": 227.746,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.52149,
    "c": 0.17775,
    "h": 268.6
  },
  "luminance": 0.13375
}

Semantic roles & 50–950 ramp

primary
#405DCE
secondary
#D4C796
accent
#C245E2
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #405DCE

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

Preview Lab → · Contrast checker → · Palette generator →

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