#406EB8#406EB8

#406EB8 is a mid, vivid blue. Relative luminance 0.157; OKLCH L 54.2% C 0.127 H 259.5°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#406EB8
RGBrgb(64, 110, 184)
HSLhsl(217, 48%, 49%)
HSVhsv(217, 65%, 72%)
CMYKcmyk(65.2%, 40.2%, 0%, 27.8%)
CIE-LABlab(46.58, 8.27, -43.80)
CIE-LCHlch(46.58, 44.57, 280.70°)
OKLaboklab(54.19% -0.0231 -0.1247)
OKLCHoklch(54.19% 0.127 259.5)
XYZxyz(16.3389, 15.7010, 47.5076)
Luminance0.1570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406EB8 #B88A40
analogous
#40AAB8 #406EB8 #4E40B8
triadic
#406EB8 #B8406E #6EB840
tetradic
#406EB8 #B840AA #B88A40 #40B84E
square
#406EB8 #B840AA #B88A40 #40B84E
split-complementary
#406EB8 #B84E40 #AAB840
monochromatic
#20385D #30538B #406EB8 #6A8FCB #97B1DB

Accessibility & contrast

On white

5.07
#406EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#406EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406EB8
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406EB8#FFFFFF#000000##FFFFFF
##406EB81.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D74BB
Deuteranopia (green-blind)
#3B69B6
Tritanopia (blue-blind)
#007F8A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #406eb8;
/* rgb */ color: rgb(64, 110, 184);
/* oklch */ color: oklch(54.2% 0.127 259.5);
Tailwind
colors: {
  custom: {
    50: '#8197ce',
    500: '#406eb8',
    950: '#000000',
  },
}
SCSS
$custom: #406eb8;
$custom-light: #8197ce;
$custom-dark: #000000;
JSON
{
  "hex": "#406eb8",
  "rgb": {
    "r": 64,
    "g": 110,
    "b": 184
  },
  "hsl": {
    "h": 217,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.54191,
    "c": 0.12682,
    "h": 259.5
  },
  "luminance": 0.15703
}

Semantic roles & 50–950 ramp

primary
#406EB8
secondary
#C7B18D
accent
#A450D8
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #406EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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