#405ED2#405ED2

#405ED2 is a mid, vivid blue. Relative luminance 0.137; OKLCH L 52.7% C 0.182 H 268.5°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#405ED2
RGBrgb(64, 94, 210)
HSLhsl(228, 62%, 54%)
HSVhsv(228, 70%, 82%)
CMYKcmyk(69.5%, 55.2%, 0%, 17.6%)
CIE-LABlab(43.87, 27.72, -63.15)
CIE-LCHlch(43.87, 68.97, 293.70°)
OKLaboklab(52.65% -0.0049 -0.1818)
OKLCHoklch(52.65% 0.182 268.5)
XYZxyz(17.7459, 13.7468, 62.6784)
Luminance0.1375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405ED2 #D2B440
analogous
#40A7D2 #405ED2 #6B40D2
triadic
#405ED2 #D2405E #5ED240
tetradic
#405ED2 #D240A7 #D2B440 #40D26B
square
#405ED2 #D240A7 #D2B440 #40D26B
split-complementary
#405ED2 #D26B40 #A7D240
monochromatic
#1D307B #2944AC #405ED2 #7288DE #A3B2E9

Accessibility & contrast

On white

5.60
#405ED2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#405ED2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405ED2
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405ED2#FFFFFF#000000##FFFFFF
##405ED21.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #405ed2;
/* rgb */ color: rgb(64, 94, 210);
/* oklch */ color: oklch(52.7% 0.182 268.5);
Tailwind
colors: {
  custom: {
    50: '#868be1',
    500: '#405ed2',
    950: '#000000',
  },
}
SCSS
$custom: #405ed2;
$custom-light: #868be1;
$custom-dark: #000000;
JSON
{
  "hex": "#405ed2",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 210
  },
  "hsl": {
    "h": 227.671,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.52651,
    "c": 0.1819,
    "h": 268.5
  },
  "luminance": 0.13749
}

Semantic roles & 50–950 ramp

primary
#405ED2
secondary
#D6C998
accent
#C443E5
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0D0B15
muted
#7D7C83

Preview Lab

Preview with #405ED2

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

Preview Lab → · Contrast checker → · Palette generator →

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