#406FC7#406FC7

#406FC7 is a mid, vivid blue. Relative luminance 0.166; OKLCH L 55.4% C 0.146 H 261.7°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#406FC7
RGBrgb(64, 111, 199)
HSLhsl(219, 55%, 52%)
HSVhsv(219, 68%, 78%)
CMYKcmyk(67.8%, 44.2%, 0%, 22%)
CIE-LABlab(47.73, 13.00, -50.62)
CIE-LCHlch(47.73, 52.26, 284.40°)
OKLaboklab(55.36% -0.0211 -0.1447)
OKLCHoklch(55.36% 0.146 261.7)
XYZxyz(18.1039, 16.5806, 56.2680)
Luminance0.1658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406FC7 #C79840
analogous
#40B3C7 #406FC7 #5540C7
triadic
#406FC7 #C7406F #6FC740
tetradic
#406FC7 #C740B3 #C79840 #40C755
square
#406FC7 #C740B3 #C79840 #40C755
split-complementary
#406FC7 #C75540 #B3C740
monochromatic
#203B6D #2E549C #406FC7 #6F93D5 #9FB6E3

Accessibility & contrast

On white

4.87
#406FC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#406FC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406FC7
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406FC7#FFFFFF#000000##FFFFFF
##406FC71.004.874.324.87
#FFFFFF4.871.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4478CA
Deuteranopia (green-blind)
#2C6BC5
Tritanopia (blue-blind)
#008391
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #406fc7;
/* rgb */ color: rgb(64, 111, 199);
/* oklch */ color: oklch(55.4% 0.146 261.7);
Tailwind
colors: {
  custom: {
    50: '#8397d8',
    500: '#406fc7',
    950: '#000000',
  },
}
SCSS
$custom: #406fc7;
$custom-light: #8397d8;
$custom-dark: #000000;
JSON
{
  "hex": "#406fc7",
  "rgb": {
    "r": 64,
    "g": 111,
    "b": 199
  },
  "hsl": {
    "h": 219.111,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.55357,
    "c": 0.14624,
    "h": 261.7
  },
  "luminance": 0.16582
}

Semantic roles & 50–950 ramp

primary
#406FC7
secondary
#CFBA94
accent
#AA4ADE
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #406FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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