#406FD4#406FD4

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

Color values

HEX#406FD4
RGBrgb(64, 111, 212)
HSLhsl(221, 63%, 54%)
HSVhsv(221, 70%, 83%)
CMYKcmyk(69.8%, 47.6%, 0%, 16.9%)
CIE-LABlab(48.52, 17.67, -56.77)
CIE-LCHlch(48.52, 59.46, 287.29°)
OKLaboklab(56.23% -0.0191 -0.1628)
OKLCHoklch(56.23% 0.164 263.3)
XYZxyz(19.6783, 17.2103, 64.5594)
Luminance0.1721 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406FD4 #D4A540
analogous
#40B9D4 #406FD4 #5B40D4
triadic
#406FD4 #D4406F #6FD440
tetradic
#406FD4 #D440B9 #D4A540 #40D45B
square
#406FD4 #D440B9 #D4A540 #40D45B
split-complementary
#406FD4 #D45B40 #B9D440
monochromatic
#1C3B7D #2753AF #406FD4 #7295DF #A4BAEA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##406FD4#FFFFFF#000000##FFFFFF
##406FD41.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)
#397AD8
Deuteranopia (green-blind)
#116DD2
Tritanopia (blue-blind)
#008797
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #406fd4;
/* rgb */ color: rgb(64, 111, 212);
/* oklch */ color: oklch(56.2% 0.164 263.3);
Tailwind
colors: {
  custom: {
    50: '#8697e2',
    500: '#406fd4',
    950: '#000000',
  },
}
SCSS
$custom: #406fd4;
$custom-light: #8697e2;
$custom-dark: #000000;
JSON
{
  "hex": "#406fd4",
  "rgb": {
    "r": 64,
    "g": 111,
    "b": 212
  },
  "hsl": {
    "h": 220.946,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56226,
    "c": 0.16391,
    "h": 263.3
  },
  "luminance": 0.17212
}

Semantic roles & 50–950 ramp

primary
#406FD4
secondary
#D7C398
accent
#B242E6
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #406FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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