#406FB4#406FB4

#406FB4 is a mid, vivid blue. Relative luminance 0.158; OKLCH L 54.2% C 0.120 H 258.0°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#406FB4
RGBrgb(64, 111, 180)
HSLhsl(216, 48%, 48%)
HSVhsv(216, 64%, 71%)
CMYKcmyk(64.4%, 38.3%, 0%, 29.4%)
CIE-LABlab(46.65, 6.24, -41.36)
CIE-LCHlch(46.65, 41.83, 278.58°)
OKLaboklab(54.17% -0.0251 -0.1175)
OKLCHoklch(54.17% 0.12 258)
XYZxyz(16.0341, 15.7526, 45.3667)
Luminance0.1575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406FB4 #B48540
analogous
#40A9B4 #406FB4 #4B40B4
triadic
#406FB4 #B4406F #6FB440
tetradic
#406FB4 #B440A9 #B48540 #40B44B
square
#406FB4 #B440A9 #B48540 #40B44B
split-complementary
#406FB4 #B44B40 #A9B440
monochromatic
#20375A #305387 #406FB4 #688FC9 #95B1D9

Accessibility & contrast

On white

5.06
#406FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #406FB4
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406FB4#FFFFFF#000000##FFFFFF
##406FB41.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5174B7
Deuteranopia (green-blind)
#406AB3
Tritanopia (blue-blind)
#007F89
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #406fb4;
/* rgb */ color: rgb(64, 111, 180);
/* oklch */ color: oklch(54.2% 0.120 258.0);
Tailwind
colors: {
  custom: {
    50: '#8097cb',
    500: '#406fb4',
    950: '#000000',
  },
}
SCSS
$custom: #406fb4;
$custom-light: #8097cb;
$custom-dark: #000000;
JSON
{
  "hex": "#406fb4",
  "rgb": {
    "r": 64,
    "g": 111,
    "b": 180
  },
  "hsl": {
    "h": 215.69,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.54172,
    "c": 0.1202,
    "h": 258
  },
  "luminance": 0.15754
}

Semantic roles & 50–950 ramp

primary
#406FB4
secondary
#C5AD8B
accent
#A151D7
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #406FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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