#406FB6#406FB6

#406FB6 is a mid, vivid blue. Relative luminance 0.158; OKLCH L 54.3% C 0.123 H 258.4°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#406FB6
RGBrgb(64, 111, 182)
HSLhsl(216, 48%, 48%)
HSVhsv(216, 65%, 71%)
CMYKcmyk(64.8%, 39%, 0%, 28.6%)
CIE-LABlab(46.76, 6.94, -42.35)
CIE-LCHlch(46.76, 42.92, 279.31°)
OKLaboklab(54.29% -0.0246 -0.1204)
OKLCHoklch(54.29% 0.123 258.4)
XYZxyz(16.2393, 15.8347, 46.4475)
Luminance0.1584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406FB6 #B68740
analogous
#40AAB6 #406FB6 #4C40B6
triadic
#406FB6 #B6406F #6FB640
tetradic
#406FB6 #B640AA #B68740 #40B64C
square
#406FB6 #B640AA #B68740 #40B64C
split-complementary
#406FB6 #B64C40 #AAB640
monochromatic
#20385B #305389 #406FB6 #6990CA #96B1DA

Accessibility & contrast

On white

5.04
#406FB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#406FB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406FB6
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406FB6#FFFFFF#000000##FFFFFF
##406FB61.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5075B9
Deuteranopia (green-blind)
#3F6AB5
Tritanopia (blue-blind)
#007F8A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #406fb6;
/* rgb */ color: rgb(64, 111, 182);
/* oklch */ color: oklch(54.3% 0.123 258.4);
Tailwind
colors: {
  custom: {
    50: '#8097cc',
    500: '#406fb6',
    950: '#000000',
  },
}
SCSS
$custom: #406fb6;
$custom-light: #8097cc;
$custom-dark: #000000;
JSON
{
  "hex": "#406fb6",
  "rgb": {
    "r": 64,
    "g": 111,
    "b": 182
  },
  "hsl": {
    "h": 216.102,
    "s": 47.967,
    "l": 48.235
  },
  "oklch": {
    "l": 0.54292,
    "c": 0.12294,
    "h": 258.4
  },
  "luminance": 0.15836
}

Semantic roles & 50–950 ramp

primary
#406FB6
secondary
#C6AF8C
accent
#A250D8
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #406FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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