#406DC7#406DC7

#406DC7 is a mid, vivid blue. Relative luminance 0.162; OKLCH L 54.9% C 0.149 H 262.6°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#406DC7
RGBrgb(64, 109, 199)
HSLhsl(220, 55%, 52%)
HSVhsv(220, 68%, 78%)
CMYKcmyk(67.8%, 45.2%, 0%, 22%)
CIE-LABlab(47.17, 14.25, -51.51)
CIE-LCHlch(47.17, 53.45, 285.47°)
OKLaboklab(54.93% -0.0192 -0.1474)
OKLCHoklch(54.93% 0.149 262.6)
XYZxyz(17.8881, 16.1490, 56.1961)
Luminance0.1615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406DC7 #C79A40
analogous
#40B1C7 #406DC7 #5740C7
triadic
#406DC7 #C7406D #6DC740
tetradic
#406DC7 #C740B1 #C79A40 #40C757
square
#406DC7 #C740B1 #C79A40 #40C757
split-complementary
#406DC7 #C75740 #B1C740
monochromatic
#20396D #2E539C #406DC7 #6F91D5 #9FB5E3

Accessibility & contrast

On white

4.96
#406DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#406DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406DC7
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406DC7#FFFFFF#000000##FFFFFF
##406DC71.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4076CA
Deuteranopia (green-blind)
#276AC5
Tritanopia (blue-blind)
#008290
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #406dc7;
/* rgb */ color: rgb(64, 109, 199);
/* oklch */ color: oklch(54.9% 0.149 262.6);
Tailwind
colors: {
  custom: {
    50: '#8396d8',
    500: '#406dc7',
    950: '#000000',
  },
}
SCSS
$custom: #406dc7;
$custom-light: #8396d8;
$custom-dark: #000000;
JSON
{
  "hex": "#406dc7",
  "rgb": {
    "r": 64,
    "g": 109,
    "b": 199
  },
  "hsl": {
    "h": 220,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.54928,
    "c": 0.14862,
    "h": 262.6
  },
  "luminance": 0.16151
}

Semantic roles & 50–950 ramp

primary
#406DC7
secondary
#CFBB94
accent
#AD4ADE
background
#F8F9FD
surface
#F0F1FA
border
#CBCBD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #406DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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