#406EB5#406EB5

#406EB5 is a mid, vivid blue. Relative luminance 0.156; OKLCH L 54.0% C 0.123 H 258.8°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#406EB5
RGBrgb(64, 110, 181)
HSLhsl(216, 48%, 48%)
HSVhsv(216, 65%, 71%)
CMYKcmyk(64.6%, 39.2%, 0%, 29%)
CIE-LABlab(46.41, 7.21, -42.32)
CIE-LCHlch(46.41, 42.93, 279.67°)
OKLaboklab(54.01% -0.0238 -0.1203)
OKLCHoklch(54.01% 0.123 258.8)
XYZxyz(16.0278, 15.5765, 45.8690)
Luminance0.1558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406EB5 #B58740
analogous
#40A8B5 #406EB5 #4C40B5
triadic
#406EB5 #B5406E #6EB540
tetradic
#406EB5 #B540A8 #B58740 #40B54C
square
#406EB5 #B540A8 #B58740 #40B54C
split-complementary
#406EB5 #B54C40 #A8B540
monochromatic
#20375B #305388 #406EB5 #688FCA #96B0DA

Accessibility & contrast

On white

5.10
#406EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#406EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406EB5
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406EB5#FFFFFF#000000##FFFFFF
##406EB51.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F74B8
Deuteranopia (green-blind)
#3E69B4
Tritanopia (blue-blind)
#007E89
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #406eb5;
/* rgb */ color: rgb(64, 110, 181);
/* oklch */ color: oklch(54.0% 0.123 258.8);
Tailwind
colors: {
  custom: {
    50: '#8097cb',
    500: '#406eb5',
    950: '#000000',
  },
}
SCSS
$custom: #406eb5;
$custom-light: #8097cb;
$custom-dark: #000000;
JSON
{
  "hex": "#406eb5",
  "rgb": {
    "r": 64,
    "g": 110,
    "b": 181
  },
  "hsl": {
    "h": 216.41,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.54008,
    "c": 0.12268,
    "h": 258.8
  },
  "luminance": 0.15578
}

Semantic roles & 50–950 ramp

primary
#406EB5
secondary
#C5AF8B
accent
#A250D7
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #406EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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