#406ED5#406ED5

#406ED5 is a mid, vivid blue. Relative luminance 0.170; OKLCH L 56.1% C 0.166 H 263.8°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#406ED5
RGBrgb(64, 110, 213)
HSLhsl(221, 64%, 54%)
HSVhsv(221, 70%, 84%)
CMYKcmyk(70%, 48.4%, 0%, 16.5%)
CIE-LABlab(48.32, 18.66, -57.68)
CIE-LCHlch(48.32, 60.62, 287.93°)
OKLaboklab(56.09% -0.018 -0.1655)
OKLCHoklch(56.09% 0.166 263.8)
XYZxyz(19.6963, 17.0439, 65.1897)
Luminance0.1705 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406ED5 #D5A740
analogous
#40B8D5 #406ED5 #5D40D5
triadic
#406ED5 #D5406E #6ED540
tetradic
#406ED5 #D540B8 #D5A740 #40D55D
square
#406ED5 #D540B8 #D5A740 #40D55D
split-complementary
#406ED5 #D55D40 #B8D540
monochromatic
#1C3A7F #2752B1 #406ED5 #7294E0 #A4BAEB

Accessibility & contrast

On white

4.76
#406ED5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#406ED5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406ED5
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406ED5#FFFFFF#000000##FFFFFF
##406ED51.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#357AD9
Deuteranopia (green-blind)
#046CD3
Tritanopia (blue-blind)
#008697
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #406ed5;
/* rgb */ color: rgb(64, 110, 213);
/* oklch */ color: oklch(56.1% 0.166 263.8);
Tailwind
colors: {
  custom: {
    50: '#8697e2',
    500: '#406ed5',
    950: '#000000',
  },
}
SCSS
$custom: #406ed5;
$custom-light: #8697e2;
$custom-dark: #000000;
JSON
{
  "hex": "#406ed5",
  "rgb": {
    "r": 64,
    "g": 110,
    "b": 213
  },
  "hsl": {
    "h": 221.477,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.56087,
    "c": 0.16646,
    "h": 263.8
  },
  "luminance": 0.17046
}

Semantic roles & 50–950 ramp

primary
#406ED5
secondary
#D8C499
accent
#B441E7
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0D0D15
muted
#7D7E83

Preview Lab

Preview with #406ED5

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

Preview Lab → · Contrast checker → · Palette generator →

#406ED5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva