#406FB5#406FB5

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

Color values

HEX#406FB5
RGBrgb(64, 111, 181)
HSLhsl(216, 48%, 48%)
HSVhsv(216, 65%, 71%)
CMYKcmyk(64.6%, 38.7%, 0%, 29%)
CIE-LABlab(46.70, 6.59, -41.86)
CIE-LCHlch(46.70, 42.38, 278.95°)
OKLaboklab(54.23% -0.0248 -0.119)
OKLCHoklch(54.23% 0.122 258.2)
XYZxyz(16.1363, 15.7935, 45.9052)
Luminance0.1580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406FB5 #B58640
analogous
#40A9B5 #406FB5 #4B40B5
triadic
#406FB5 #B5406F #6FB540
tetradic
#406FB5 #B540A9 #B58640 #40B54B
square
#406FB5 #B540A9 #B58640 #40B54B
split-complementary
#406FB5 #B54B40 #A9B540
monochromatic
#20385B #305388 #406FB5 #6890CA #96B1DA

Accessibility & contrast

On white

5.05
#406FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#406FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406FB5
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406FB5#FFFFFF#000000##FFFFFF
##406FB51.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5075B8
Deuteranopia (green-blind)
#3F6AB4
Tritanopia (blue-blind)
#007F89
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #406fb5;
/* rgb */ color: rgb(64, 111, 181);
/* oklch */ color: oklch(54.2% 0.122 258.2);
Tailwind
colors: {
  custom: {
    50: '#8097cb',
    500: '#406fb5',
    950: '#000000',
  },
}
SCSS
$custom: #406fb5;
$custom-light: #8097cb;
$custom-dark: #000000;
JSON
{
  "hex": "#406fb5",
  "rgb": {
    "r": 64,
    "g": 111,
    "b": 181
  },
  "hsl": {
    "h": 215.897,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.54232,
    "c": 0.12157,
    "h": 258.2
  },
  "luminance": 0.15795
}

Semantic roles & 50–950 ramp

primary
#406FB5
secondary
#C5AE8B
accent
#A150D7
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #406FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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