#405FD2#405FD2

#405FD2 is a mid, vivid blue. Relative luminance 0.139; OKLCH L 52.8% C 0.181 H 268.2°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#405FD2
RGBrgb(64, 95, 210)
HSLhsl(227, 62%, 54%)
HSVhsv(227, 70%, 82%)
CMYKcmyk(69.5%, 54.8%, 0%, 17.6%)
CIE-LABlab(44.13, 27.09, -62.73)
CIE-LCHlch(44.13, 68.33, 293.36°)
OKLaboklab(52.85% -0.0057 -0.1806)
OKLCHoklch(52.85% 0.181 268.2)
XYZxyz(17.8354, 13.9258, 62.7083)
Luminance0.1393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FD2 #D2B340
analogous
#40A8D2 #405FD2 #6A40D2
triadic
#405FD2 #D2405F #5FD240
tetradic
#405FD2 #D240A8 #D2B340 #40D26A
square
#405FD2 #D240A8 #D2B340 #40D26A
split-complementary
#405FD2 #D26A40 #A8D240
monochromatic
#1D317B #2945AC #405FD2 #7288DE #A3B2E9

Accessibility & contrast

On white

5.55
#405FD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#405FD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FD2
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FD2#FFFFFF#000000##FFFFFF
##405FD21.005.553.795.55
#FFFFFF5.551.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD6
Deuteranopia (green-blind)
#0062D0
Tritanopia (blue-blind)
#007B8F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #405fd2;
/* rgb */ color: rgb(64, 95, 210);
/* oklch */ color: oklch(52.8% 0.181 268.2);
Tailwind
colors: {
  custom: {
    50: '#868ce1',
    500: '#405fd2',
    950: '#000000',
  },
}
SCSS
$custom: #405fd2;
$custom-light: #868ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#405fd2",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 210
  },
  "hsl": {
    "h": 227.26,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.52845,
    "c": 0.18068,
    "h": 268.2
  },
  "luminance": 0.13928
}

Semantic roles & 50–950 ramp

primary
#405FD2
secondary
#D6C998
accent
#C343E5
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0D0C15
muted
#7D7D83

Preview Lab

Preview with #405FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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