#406BC7#406BC7

#406BC7 is a mid, vivid blue. Relative luminance 0.157; OKLCH L 54.5% C 0.151 H 263.4°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#406BC7
RGBrgb(64, 107, 199)
HSLhsl(221, 55%, 52%)
HSVhsv(221, 68%, 78%)
CMYKcmyk(67.8%, 46.2%, 0%, 22%)
CIE-LABlab(46.61, 15.52, -52.40)
CIE-LCHlch(46.61, 54.65, 286.49°)
OKLaboklab(54.5% -0.0174 -0.15)
OKLCHoklch(54.5% 0.151 263.4)
XYZxyz(17.6772, 15.7271, 56.1258)
Luminance0.1573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406BC7 #C79C40
analogous
#40AFC7 #406BC7 #5940C7
triadic
#406BC7 #C7406B #6BC740
tetradic
#406BC7 #C740AF #C79C40 #40C759
square
#406BC7 #C740AF #C79C40 #40C759
split-complementary
#406BC7 #C75940 #AFC740
monochromatic
#20386D #2E519C #406BC7 #6F90D5 #9FB4E3

Accessibility & contrast

On white

5.07
#406BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#406BC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406BC7
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406BC7#FFFFFF#000000##FFFFFF
##406BC71.005.074.155.07
#FFFFFF5.071.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C75CA
Deuteranopia (green-blind)
#2169C5
Tritanopia (blue-blind)
#00808F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #406bc7;
/* rgb */ color: rgb(64, 107, 199);
/* oklch */ color: oklch(54.5% 0.151 263.4);
Tailwind
colors: {
  custom: {
    50: '#8494d8',
    500: '#406bc7',
    950: '#000000',
  },
}
SCSS
$custom: #406bc7;
$custom-light: #8494d8;
$custom-dark: #000000;
JSON
{
  "hex": "#406bc7",
  "rgb": {
    "r": 64,
    "g": 107,
    "b": 199
  },
  "hsl": {
    "h": 220.889,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.54502,
    "c": 0.15101,
    "h": 263.4
  },
  "luminance": 0.15729
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #406BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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