#406CC7#406CC7

#406CC7 is a mid, vivid blue. Relative luminance 0.159; OKLCH L 54.7% C 0.150 H 263.0°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#406CC7
RGBrgb(64, 108, 199)
HSLhsl(220, 55%, 52%)
HSVhsv(220, 68%, 78%)
CMYKcmyk(67.8%, 45.7%, 0%, 22%)
CIE-LABlab(46.89, 14.88, -51.96)
CIE-LCHlch(46.89, 54.05, 285.98°)
OKLaboklab(54.72% -0.0183 -0.1487)
OKLCHoklch(54.72% 0.15 263)
XYZxyz(17.7821, 15.9369, 56.1608)
Luminance0.1594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406CC7 #C79B40
analogous
#40B0C7 #406CC7 #5840C7
triadic
#406CC7 #C7406C #6CC740
tetradic
#406CC7 #C740B0 #C79B40 #40C758
square
#406CC7 #C740B0 #C79B40 #40C758
split-complementary
#406CC7 #C75840 #B0C740
monochromatic
#20396D #2E529C #406CC7 #6F90D5 #9FB5E3

Accessibility & contrast

On white

5.01
#406CC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#406CC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406CC7
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406CC7#FFFFFF#000000##FFFFFF
##406CC71.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E76CA
Deuteranopia (green-blind)
#2469C5
Tritanopia (blue-blind)
#008190
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #406cc7;
/* rgb */ color: rgb(64, 108, 199);
/* oklch */ color: oklch(54.7% 0.150 263.0);
Tailwind
colors: {
  custom: {
    50: '#8395d8',
    500: '#406cc7',
    950: '#000000',
  },
}
SCSS
$custom: #406cc7;
$custom-light: #8395d8;
$custom-dark: #000000;
JSON
{
  "hex": "#406cc7",
  "rgb": {
    "r": 64,
    "g": 108,
    "b": 199
  },
  "hsl": {
    "h": 220.444,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.54715,
    "c": 0.14981,
    "h": 263
  },
  "luminance": 0.15939
}

Semantic roles & 50–950 ramp

primary
#406CC7
secondary
#CFBC94
accent
#AE4ADE
background
#F8F9FD
surface
#F0F1FA
border
#CBCBD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #406CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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