#405DD2#405DD2

#405DD2 is a mid, vivid blue. Relative luminance 0.136; OKLCH L 52.5% C 0.183 H 268.7°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#405DD2
RGBrgb(64, 93, 210)
HSLhsl(228, 62%, 54%)
HSVhsv(228, 70%, 82%)
CMYKcmyk(69.5%, 55.7%, 0%, 17.6%)
CIE-LABlab(43.61, 28.36, -63.57)
CIE-LCHlch(43.61, 69.61, 294.04°)
OKLaboklab(52.46% -0.0041 -0.1831)
OKLCHoklch(52.46% 0.183 268.7)
XYZxyz(17.6576, 13.5701, 62.6490)
Luminance0.1357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DD2 #D2B540
analogous
#40A6D2 #405DD2 #6C40D2
triadic
#405DD2 #D2405D #5DD240
tetradic
#405DD2 #D240A6 #D2B540 #40D26C
square
#405DD2 #D240A6 #D2B540 #40D26C
split-complementary
#405DD2 #D26C40 #A6D240
monochromatic
#1D307B #2943AC #405DD2 #7287DE #A3B1E9

Accessibility & contrast

On white

5.65
#405DD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#405DD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DD2
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DD2#FFFFFF#000000##FFFFFF
##405DD21.005.653.715.65
#FFFFFF5.651.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED6
Deuteranopia (green-blind)
#0061D0
Tritanopia (blue-blind)
#007A8E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #405dd2;
/* rgb */ color: rgb(64, 93, 210);
/* oklch */ color: oklch(52.5% 0.183 268.7);
Tailwind
colors: {
  custom: {
    50: '#868ae1',
    500: '#405dd2',
    950: '#000000',
  },
}
SCSS
$custom: #405dd2;
$custom-light: #868ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#405dd2",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 210
  },
  "hsl": {
    "h": 228.082,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.52458,
    "c": 0.18313,
    "h": 268.7
  },
  "luminance": 0.13572
}

Semantic roles & 50–950 ramp

primary
#405DD2
secondary
#D6CA98
accent
#C543E5
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0D0B15
muted
#7D7C83

Preview Lab

Preview with #405DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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