#406DD4#406DD4

#406DD4 is a mid, vivid blue. Relative luminance 0.168; OKLCH L 55.8% C 0.166 H 264.0°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#406DD4
RGBrgb(64, 109, 212)
HSLhsl(222, 63%, 54%)
HSVhsv(222, 70%, 83%)
CMYKcmyk(69.8%, 48.6%, 0%, 16.9%)
CIE-LABlab(47.98, 18.93, -57.65)
CIE-LCHlch(47.98, 60.68, 288.18°)
OKLaboklab(55.81% -0.0173 -0.1654)
OKLCHoklch(55.81% 0.166 264)
XYZxyz(19.4625, 16.7787, 64.4875)
Luminance0.1678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406DD4 #D4A740
analogous
#40B7D4 #406DD4 #5D40D4
triadic
#406DD4 #D4406D #6DD440
tetradic
#406DD4 #D440B7 #D4A740 #40D45D
square
#406DD4 #D440B7 #D4A740 #40D45D
split-complementary
#406DD4 #D45D40 #B7D440
monochromatic
#1C3A7D #2751AF #406DD4 #7293DF #A4B9EA

Accessibility & contrast

On white

4.82
#406DD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#406DD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406DD4
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406DD4#FFFFFF#000000##FFFFFF
##406DD41.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3479D8
Deuteranopia (green-blind)
#016BD2
Tritanopia (blue-blind)
#008596
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #406dd4;
/* rgb */ color: rgb(64, 109, 212);
/* oklch */ color: oklch(55.8% 0.166 264.0);
Tailwind
colors: {
  custom: {
    50: '#8696e2',
    500: '#406dd4',
    950: '#000000',
  },
}
SCSS
$custom: #406dd4;
$custom-light: #8696e2;
$custom-dark: #000000;
JSON
{
  "hex": "#406dd4",
  "rgb": {
    "r": 64,
    "g": 109,
    "b": 212
  },
  "hsl": {
    "h": 221.757,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.5581,
    "c": 0.16631,
    "h": 264
  },
  "luminance": 0.16781
}

Semantic roles & 50–950 ramp

primary
#406DD4
secondary
#D7C498
accent
#B442E6
background
#F8F9FD
surface
#F0F1FB
border
#CBCBD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #406DD4

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

Preview Lab → · Contrast checker → · Palette generator →

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