#406FD5#406FD5

#406FD5 is a mid, vivid blue. Relative luminance 0.173; OKLCH L 56.3% C 0.165 H 263.4°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#406FD5
RGBrgb(64, 111, 213)
HSLhsl(221, 64%, 54%)
HSVhsv(221, 70%, 84%)
CMYKcmyk(70%, 47.9%, 0%, 16.5%)
CIE-LABlab(48.59, 18.03, -57.24)
CIE-LCHlch(48.59, 60.01, 287.49°)
OKLaboklab(56.29% -0.0189 -0.1642)
OKLCHoklch(56.29% 0.165 263.4)
XYZxyz(19.8048, 17.2609, 65.2258)
Luminance0.1726 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406FD5 #D5A640
analogous
#40B9D5 #406FD5 #5C40D5
triadic
#406FD5 #D5406F #6FD540
tetradic
#406FD5 #D540B9 #D5A640 #40D55C
square
#406FD5 #D540B9 #D5A640 #40D55C
split-complementary
#406FD5 #D55C40 #B9D540
monochromatic
#1C3B7F #2752B1 #406FD5 #7295E0 #A4BBEB

Accessibility & contrast

On white

4.72
#406FD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#406FD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406FD5
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406FD5#FFFFFF#000000##FFFFFF
##406FD51.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#377BD9
Deuteranopia (green-blind)
#0D6DD3
Tritanopia (blue-blind)
#008798
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #406fd5;
/* rgb */ color: rgb(64, 111, 213);
/* oklch */ color: oklch(56.3% 0.165 263.4);
Tailwind
colors: {
  custom: {
    50: '#8697e2',
    500: '#406fd5',
    950: '#000000',
  },
}
SCSS
$custom: #406fd5;
$custom-light: #8697e2;
$custom-dark: #000000;
JSON
{
  "hex": "#406fd5",
  "rgb": {
    "r": 64,
    "g": 111,
    "b": 213
  },
  "hsl": {
    "h": 221.074,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.56294,
    "c": 0.16526,
    "h": 263.4
  },
  "luminance": 0.17263
}

Semantic roles & 50–950 ramp

primary
#406FD5
secondary
#D8C499
accent
#B341E7
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #406FD5

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

Preview Lab → · Contrast checker → · Palette generator →

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