#406CD2#406CD2

#406CD2 is a mid, vivid blue. Relative luminance 0.165; OKLCH L 55.5% C 0.165 H 264.2°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#406CD2
RGBrgb(64, 108, 210)
HSLhsl(222, 62%, 54%)
HSVhsv(222, 70%, 82%)
CMYKcmyk(69.5%, 48.6%, 0%, 17.6%)
CIE-LABlab(47.58, 18.84, -57.15)
CIE-LCHlch(47.58, 60.18, 288.25°)
OKLaboklab(55.46% -0.0167 -0.164)
OKLCHoklch(55.46% 0.165 264.2)
XYZxyz(19.1057, 16.4663, 63.1317)
Luminance0.1647 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406CD2 #D2A640
analogous
#40B5D2 #406CD2 #5D40D2
triadic
#406CD2 #D2406C #6CD240
tetradic
#406CD2 #D240B5 #D2A640 #40D25D
square
#406CD2 #D240B5 #D2A640 #40D25D
split-complementary
#406CD2 #D25D40 #B5D240
monochromatic
#1D397B #2950AC #406CD2 #7292DE #A3B8E9

Accessibility & contrast

On white

4.89
#406CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#406CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406CD2
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406CD2#FFFFFF#000000##FFFFFF
##406CD21.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3378D6
Deuteranopia (green-blind)
#036BD0
Tritanopia (blue-blind)
#008495
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #406cd2;
/* rgb */ color: rgb(64, 108, 210);
/* oklch */ color: oklch(55.5% 0.165 264.2);
Tailwind
colors: {
  custom: {
    50: '#8695e0',
    500: '#406cd2',
    950: '#000000',
  },
}
SCSS
$custom: #406cd2;
$custom-light: #8695e0;
$custom-dark: #000000;
JSON
{
  "hex": "#406cd2",
  "rgb": {
    "r": 64,
    "g": 108,
    "b": 210
  },
  "hsl": {
    "h": 221.918,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.55464,
    "c": 0.16481,
    "h": 264.2
  },
  "luminance": 0.16468
}

Semantic roles & 50–950 ramp

primary
#406CD2
secondary
#D6C398
accent
#B443E5
background
#F8F9FD
surface
#F0F1FB
border
#CBCBD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #406CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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