#406CD4#406CD4

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

Color values

HEX#406CD4
RGBrgb(64, 108, 212)
HSLhsl(222, 63%, 54%)
HSVhsv(222, 70%, 83%)
CMYKcmyk(69.8%, 49.1%, 0%, 16.9%)
CIE-LABlab(47.71, 19.56, -58.08)
CIE-LCHlch(47.71, 61.29, 288.61°)
OKLaboklab(55.6% -0.0164 -0.1667)
OKLCHoklch(55.6% 0.168 264.4)
XYZxyz(19.3564, 16.5666, 64.4522)
Luminance0.1657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406CD4 #D4A840
analogous
#40B6D4 #406CD4 #5E40D4
triadic
#406CD4 #D4406C #6CD440
tetradic
#406CD4 #D440B6 #D4A840 #40D45E
square
#406CD4 #D440B6 #D4A840 #40D45E
split-complementary
#406CD4 #D45E40 #B6D440
monochromatic
#1C397D #2750AF #406CD4 #7292DF #A4B9EA

Accessibility & contrast

On white

4.87
#406CD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#406CD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406CD4
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406CD4#FFFFFF#000000##FFFFFF
##406CD41.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3178D8
Deuteranopia (green-blind)
#006BD2
Tritanopia (blue-blind)
#008596
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #406cd4;
/* rgb */ color: rgb(64, 108, 212);
/* oklch */ color: oklch(55.6% 0.168 264.4);
Tailwind
colors: {
  custom: {
    50: '#8695e2',
    500: '#406cd4',
    950: '#000000',
  },
}
SCSS
$custom: #406cd4;
$custom-light: #8695e2;
$custom-dark: #000000;
JSON
{
  "hex": "#406cd4",
  "rgb": {
    "r": 64,
    "g": 108,
    "b": 212
  },
  "hsl": {
    "h": 222.162,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.55603,
    "c": 0.16752,
    "h": 264.4
  },
  "luminance": 0.16569
}

Semantic roles & 50–950 ramp

primary
#406CD4
secondary
#D7C598
accent
#B542E6
background
#F8F9FD
surface
#F0F1FB
border
#CBCBD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #406CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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