#406ED8#406ED8

#406ED8 is a mid, vivid blue. Relative luminance 0.172; OKLCH L 56.3% C 0.171 H 264.1°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#406ED8
RGBrgb(64, 110, 216)
HSLhsl(222, 66%, 55%)
HSVhsv(222, 70%, 85%)
CMYKcmyk(70.4%, 49.1%, 0%, 15.3%)
CIE-LABlab(48.51, 19.74, -59.07)
CIE-LCHlch(48.51, 62.28, 288.48°)
OKLaboklab(56.29% -0.0177 -0.1696)
OKLCHoklch(56.29% 0.171 264.1)
XYZxyz(20.0806, 17.1976, 67.2136)
Luminance0.1720 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406ED8 #D8AA40
analogous
#40BAD8 #406ED8 #5E40D8
triadic
#406ED8 #D8406E #6ED840
tetradic
#406ED8 #D840BA #D8AA40 #40D85E
square
#406ED8 #D840BA #D8AA40 #40D85E
split-complementary
#406ED8 #D85E40 #BAD840
monochromatic
#1B3A83 #2551B6 #406ED8 #7395E2 #A6BBED

Accessibility & contrast

On white

4.73
#406ED8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#406ED8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406ED8
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406ED8#FFFFFF#000000##FFFFFF
##406ED81.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#317BDC
Deuteranopia (green-blind)
#006DD6
Tritanopia (blue-blind)
#008799
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #406ed8;
/* rgb */ color: rgb(64, 110, 216);
/* oklch */ color: oklch(56.3% 0.171 264.1);
Tailwind
colors: {
  custom: {
    50: '#8797e5',
    500: '#406ed8',
    950: '#000000',
  },
}
SCSS
$custom: #406ed8;
$custom-light: #8797e5;
$custom-dark: #000000;
JSON
{
  "hex": "#406ed8",
  "rgb": {
    "r": 64,
    "g": 110,
    "b": 216
  },
  "hsl": {
    "h": 221.842,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.56295,
    "c": 0.1705,
    "h": 264.1
  },
  "luminance": 0.172
}

Semantic roles & 50–950 ramp

primary
#406ED8
secondary
#DAC79A
accent
#B63FE9
background
#F8F9FE
surface
#F0F2FC
border
#CBCCD5
text
#0D0D16
muted
#7D7E84

Preview Lab

Preview with #406ED8

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

Preview Lab → · Contrast checker → · Palette generator →

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