#406EB7#406EB7

#406EB7 is a mid, vivid blue. Relative luminance 0.157; OKLCH L 54.1% C 0.125 H 259.3°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#406EB7
RGBrgb(64, 110, 183)
HSLhsl(217, 48%, 48%)
HSVhsv(217, 65%, 72%)
CMYKcmyk(65%, 39.9%, 0%, 28.2%)
CIE-LABlab(46.52, 7.92, -43.30)
CIE-LCHlch(46.52, 44.02, 280.36°)
OKLaboklab(54.13% -0.0234 -0.1232)
OKLCHoklch(54.13% 0.125 259.3)
XYZxyz(16.2345, 15.6592, 46.9575)
Luminance0.1566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406EB7 #B78940
analogous
#40A9B7 #406EB7 #4E40B7
triadic
#406EB7 #B7406E #6EB740
tetradic
#406EB7 #B740A9 #B78940 #40B74E
square
#406EB7 #B740A9 #B78940 #40B74E
split-complementary
#406EB7 #B74E40 #A9B740
monochromatic
#20375C #30538A #406EB7 #698FCB #97B1DB

Accessibility & contrast

On white

5.08
#406EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#406EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406EB7
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406EB7#FFFFFF#000000##FFFFFF
##406EB71.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D74BA
Deuteranopia (green-blind)
#3C69B5
Tritanopia (blue-blind)
#007F89
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #406eb7;
/* rgb */ color: rgb(64, 110, 183);
/* oklch */ color: oklch(54.1% 0.125 259.3);
Tailwind
colors: {
  custom: {
    50: '#8197cd',
    500: '#406eb7',
    950: '#000000',
  },
}
SCSS
$custom: #406eb7;
$custom-light: #8197cd;
$custom-dark: #000000;
JSON
{
  "hex": "#406eb7",
  "rgb": {
    "r": 64,
    "g": 110,
    "b": 183
  },
  "hsl": {
    "h": 216.807,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.54129,
    "c": 0.12544,
    "h": 259.3
  },
  "luminance": 0.15661
}

Semantic roles & 50–950 ramp

primary
#406EB7
secondary
#C6B08D
accent
#A350D8
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #406EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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