#406CC6#406CC6

#406CC6 is a mid, vivid blue. Relative luminance 0.159; OKLCH L 54.6% C 0.148 H 262.9°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#406CC6
RGBrgb(64, 108, 198)
HSLhsl(220, 54%, 51%)
HSVhsv(220, 68%, 78%)
CMYKcmyk(67.7%, 45.5%, 0%, 22.4%)
CIE-LABlab(46.83, 14.53, -51.48)
CIE-LCHlch(46.83, 53.49, 285.76°)
OKLaboklab(54.65% -0.0185 -0.1473)
OKLCHoklch(54.65% 0.148 262.9)
XYZxyz(17.6664, 15.8906, 55.5513)
Luminance0.1589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406CC6 #C69A40
analogous
#40AFC6 #406CC6 #5740C6
triadic
#406CC6 #C6406C #6CC640
tetradic
#406CC6 #C640AF #C69A40 #40C657
square
#406CC6 #C640AF #C69A40 #40C657
split-complementary
#406CC6 #C65740 #AFC640
monochromatic
#20396C #2E529B #406CC6 #6F90D4 #9EB5E2

Accessibility & contrast

On white

5.03
#406CC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#406CC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406CC6
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406CC6#FFFFFF#000000##FFFFFF
##406CC61.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F76C9
Deuteranopia (green-blind)
#2669C4
Tritanopia (blue-blind)
#00818F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #406cc6;
/* rgb */ color: rgb(64, 108, 198);
/* oklch */ color: oklch(54.6% 0.148 262.9);
Tailwind
colors: {
  custom: {
    50: '#8395d8',
    500: '#406cc6',
    950: '#000000',
  },
}
SCSS
$custom: #406cc6;
$custom-light: #8395d8;
$custom-dark: #000000;
JSON
{
  "hex": "#406cc6",
  "rgb": {
    "r": 64,
    "g": 108,
    "b": 198
  },
  "hsl": {
    "h": 220.299,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.54648,
    "c": 0.14844,
    "h": 262.9
  },
  "luminance": 0.15892
}

Semantic roles & 50–950 ramp

primary
#406CC6
secondary
#CEBB93
accent
#AD4ADD
background
#F8F9FD
surface
#F0F1FA
border
#CBCBD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #406CC6

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

Preview Lab → · Contrast checker → · Palette generator →

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