#406BD5#406BD5

#406BD5 is a mid, vivid blue. Relative luminance 0.164; OKLCH L 55.5% C 0.170 H 264.8°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#406BD5
RGBrgb(64, 107, 213)
HSLhsl(223, 64%, 54%)
HSVhsv(223, 70%, 84%)
CMYKcmyk(70%, 49.8%, 0%, 16.5%)
CIE-LABlab(47.50, 20.55, -58.98)
CIE-LCHlch(47.50, 62.46, 289.21°)
OKLaboklab(55.47% -0.0154 -0.1694)
OKLCHoklch(55.47% 0.17 264.8)
XYZxyz(19.3781, 16.4075, 65.0836)
Luminance0.1641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406BD5 #D5AA40
analogous
#40B5D5 #406BD5 #6040D5
triadic
#406BD5 #D5406B #6BD540
tetradic
#406BD5 #D540B5 #D5AA40 #40D560
square
#406BD5 #D540B5 #D5AA40 #40D560
split-complementary
#406BD5 #D56040 #B5D540
monochromatic
#1C387F #274FB1 #406BD5 #7292E0 #A4B9EB

Accessibility & contrast

On white

4.90
#406BD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#406BD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406BD5
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406BD5#FFFFFF#000000##FFFFFF
##406BD51.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D78D9
Deuteranopia (green-blind)
#006AD3
Tritanopia (blue-blind)
#008496
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #406bd5;
/* rgb */ color: rgb(64, 107, 213);
/* oklch */ color: oklch(55.5% 0.170 264.8);
Tailwind
colors: {
  custom: {
    50: '#8694e3',
    500: '#406bd5',
    950: '#000000',
  },
}
SCSS
$custom: #406bd5;
$custom-light: #8694e3;
$custom-dark: #000000;
JSON
{
  "hex": "#406bd5",
  "rgb": {
    "r": 64,
    "g": 107,
    "b": 213
  },
  "hsl": {
    "h": 222.685,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.55468,
    "c": 0.17007,
    "h": 264.8
  },
  "luminance": 0.16409
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #406BD5

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

Preview Lab → · Contrast checker → · Palette generator →

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