#406ED6#406ED6

#406ED6 is a mid, vivid blue. Relative luminance 0.171; OKLCH L 56.2% C 0.168 H 263.9°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#406ED6
RGBrgb(64, 110, 214)
HSLhsl(222, 65%, 55%)
HSVhsv(222, 70%, 84%)
CMYKcmyk(70.1%, 48.6%, 0%, 16.1%)
CIE-LABlab(48.38, 19.02, -58.14)
CIE-LCHlch(48.38, 61.18, 288.12°)
OKLaboklab(56.16% -0.0179 -0.1668)
OKLCHoklch(56.16% 0.168 263.9)
XYZxyz(19.8236, 17.0948, 65.8602)
Luminance0.1710 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406ED6 #D6A840
analogous
#40B9D6 #406ED6 #5D40D6
triadic
#406ED6 #D6406E #6ED640
tetradic
#406ED6 #D640B9 #D6A840 #40D65D
square
#406ED6 #D640B9 #D6A840 #40D65D
split-complementary
#406ED6 #D65D40 #B9D640
monochromatic
#1B3A80 #2651B2 #406ED6 #7294E1 #A5BBEC

Accessibility & contrast

On white

4.75
#406ED6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#406ED6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406ED6
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406ED6#FFFFFF#000000##FFFFFF
##406ED61.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#347ADA
Deuteranopia (green-blind)
#006CD4
Tritanopia (blue-blind)
#008798
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #406ed6;
/* rgb */ color: rgb(64, 110, 214);
/* oklch */ color: oklch(56.2% 0.168 263.9);
Tailwind
colors: {
  custom: {
    50: '#8697e3',
    500: '#406ed6',
    950: '#000000',
  },
}
SCSS
$custom: #406ed6;
$custom-light: #8697e3;
$custom-dark: #000000;
JSON
{
  "hex": "#406ed6",
  "rgb": {
    "r": 64,
    "g": 110,
    "b": 214
  },
  "hsl": {
    "h": 221.6,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.56156,
    "c": 0.16781,
    "h": 263.9
  },
  "luminance": 0.17097
}

Semantic roles & 50–950 ramp

primary
#406ED6
secondary
#D9C599
accent
#B440E8
background
#F8F9FE
surface
#F0F2FC
border
#CBCCD5
text
#0D0D15
muted
#7D7E84

Preview Lab

Preview with #406ED6

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

Preview Lab → · Contrast checker → · Palette generator →

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