#406ED4#406ED4

#406ED4 is a mid, vivid blue. Relative luminance 0.170; OKLCH L 56.0% C 0.165 H 263.7°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#406ED4
RGBrgb(64, 110, 212)
HSLhsl(221, 63%, 54%)
HSVhsv(221, 70%, 83%)
CMYKcmyk(69.8%, 48.1%, 0%, 16.9%)
CIE-LABlab(48.25, 18.30, -57.21)
CIE-LCHlch(48.25, 60.07, 287.74°)
OKLaboklab(56.02% -0.0182 -0.1641)
OKLCHoklch(56.02% 0.165 263.7)
XYZxyz(19.5697, 16.9933, 64.5233)
Luminance0.1699 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406ED4 #D4A640
analogous
#40B8D4 #406ED4 #5C40D4
triadic
#406ED4 #D4406E #6ED440
tetradic
#406ED4 #D440B8 #D4A640 #40D45C
square
#406ED4 #D440B8 #D4A640 #40D45C
split-complementary
#406ED4 #D45C40 #B8D440
monochromatic
#1C3A7D #2752AF #406ED4 #7294DF #A4BAEA

Accessibility & contrast

On white

4.77
#406ED4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#406ED4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406ED4
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406ED4#FFFFFF#000000##FFFFFF
##406ED41.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#367AD8
Deuteranopia (green-blind)
#0A6CD2
Tritanopia (blue-blind)
#008697
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #406ed4;
/* rgb */ color: rgb(64, 110, 212);
/* oklch */ color: oklch(56.0% 0.165 263.7);
Tailwind
colors: {
  custom: {
    50: '#8697e2',
    500: '#406ed4',
    950: '#000000',
  },
}
SCSS
$custom: #406ed4;
$custom-light: #8697e2;
$custom-dark: #000000;
JSON
{
  "hex": "#406ed4",
  "rgb": {
    "r": 64,
    "g": 110,
    "b": 212
  },
  "hsl": {
    "h": 221.351,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56017,
    "c": 0.1651,
    "h": 263.7
  },
  "luminance": 0.16995
}

Semantic roles & 50–950 ramp

primary
#406ED4
secondary
#D7C498
accent
#B342E6
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #406ED4

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

Preview Lab → · Contrast checker → · Palette generator →

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