#406FB7#406FB7

#406FB7 is a mid, vivid blue. Relative luminance 0.159; OKLCH L 54.4% C 0.124 H 258.7°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#406FB7
RGBrgb(64, 111, 183)
HSLhsl(216, 48%, 48%)
HSVhsv(216, 65%, 72%)
CMYKcmyk(65%, 39.3%, 0%, 28.2%)
CIE-LABlab(46.81, 7.30, -42.85)
CIE-LCHlch(46.81, 43.46, 279.66°)
OKLaboklab(54.35% -0.0244 -0.1219)
OKLCHoklch(54.35% 0.124 258.7)
XYZxyz(16.3430, 15.8762, 46.9937)
Luminance0.1588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406FB7 #B78840
analogous
#40AAB7 #406FB7 #4D40B7
triadic
#406FB7 #B7406F #6FB740
tetradic
#406FB7 #B740AA #B78840 #40B74D
square
#406FB7 #B740AA #B78840 #40B74D
split-complementary
#406FB7 #B74D40 #AAB740
monochromatic
#20385C #30538A #406FB7 #6990CB #97B2DB

Accessibility & contrast

On white

5.03
#406FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#406FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406FB7
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406FB7#FFFFFF#000000##FFFFFF
##406FB71.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F75BA
Deuteranopia (green-blind)
#3E6AB6
Tritanopia (blue-blind)
#007F8A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #406fb7;
/* rgb */ color: rgb(64, 111, 183);
/* oklch */ color: oklch(54.4% 0.124 258.7);
Tailwind
colors: {
  custom: {
    50: '#8197cd',
    500: '#406fb7',
    950: '#000000',
  },
}
SCSS
$custom: #406fb7;
$custom-light: #8197cd;
$custom-dark: #000000;
JSON
{
  "hex": "#406fb7",
  "rgb": {
    "r": 64,
    "g": 111,
    "b": 183
  },
  "hsl": {
    "h": 216.303,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.54353,
    "c": 0.12431,
    "h": 258.7
  },
  "luminance": 0.15878
}

Semantic roles & 50–950 ramp

primary
#406FB7
secondary
#C6AF8D
accent
#A250D8
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #406FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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