#406AD5#406AD5

#406AD5 is a mid, vivid blue. Relative luminance 0.162; OKLCH L 55.3% C 0.171 H 265.1°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#406AD5
RGBrgb(64, 106, 213)
HSLhsl(223, 64%, 54%)
HSVhsv(223, 70%, 84%)
CMYKcmyk(70%, 50.2%, 0%, 16.5%)
CIE-LABlab(47.24, 21.18, -59.42)
CIE-LCHlch(47.24, 63.08, 289.62°)
OKLaboklab(55.26% -0.0146 -0.1707)
OKLCHoklch(55.26% 0.171 265.1)
XYZxyz(19.2744, 16.2002, 65.0490)
Luminance0.1620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406AD5 #D5AB40
analogous
#40B5D5 #406AD5 #6140D5
triadic
#406AD5 #D5406A #6AD540
tetradic
#406AD5 #D540B5 #D5AB40 #40D561
square
#406AD5 #D540B5 #D5AB40 #40D561
split-complementary
#406AD5 #D56140 #B5D540
monochromatic
#1C387F #274EB1 #406AD5 #7291E0 #A4B8EB

Accessibility & contrast

On white

4.95
#406AD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#406AD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406AD5
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406AD5#FFFFFF#000000##FFFFFF
##406AD51.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A77D9
Deuteranopia (green-blind)
#006AD3
Tritanopia (blue-blind)
#008395
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #406ad5;
/* rgb */ color: rgb(64, 106, 213);
/* oklch */ color: oklch(55.3% 0.171 265.1);
Tailwind
colors: {
  custom: {
    50: '#8694e3',
    500: '#406ad5',
    950: '#000000',
  },
}
SCSS
$custom: #406ad5;
$custom-light: #8694e3;
$custom-dark: #000000;
JSON
{
  "hex": "#406ad5",
  "rgb": {
    "r": 64,
    "g": 106,
    "b": 213
  },
  "hsl": {
    "h": 223.087,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.55264,
    "c": 0.17128,
    "h": 265.1
  },
  "luminance": 0.16202
}

Semantic roles & 50–950 ramp

primary
#406AD5
secondary
#D8C699
accent
#B841E7
background
#F8F9FE
surface
#F0F1FC
border
#CBCBD5
text
#0D0D15
muted
#7D7E84

Preview Lab

Preview with #406AD5

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

Preview Lab → · Contrast checker → · Palette generator →

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