#406CB7#406CB7

#406CB7 is a mid, vivid blue. Relative luminance 0.152; OKLCH L 53.7% C 0.128 H 260.4°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#406CB7
RGBrgb(64, 108, 183)
HSLhsl(218, 48%, 48%)
HSVhsv(218, 65%, 72%)
CMYKcmyk(65%, 41%, 0%, 28.2%)
CIE-LABlab(45.95, 9.17, -44.22)
CIE-LCHlch(45.95, 45.16, 281.71°)
OKLaboklab(53.69% -0.0213 -0.1259)
OKLCHoklch(53.69% 0.128 260.4)
XYZxyz(16.0211, 15.2325, 46.8864)
Luminance0.1523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406CB7 #B78B40
analogous
#40A7B7 #406CB7 #4F40B7
triadic
#406CB7 #B7406C #6CB740
tetradic
#406CB7 #B740A7 #B78B40 #40B74F
square
#406CB7 #B740A7 #B78B40 #40B74F
split-complementary
#406CB7 #B74F40 #A7B740
monochromatic
#20365C #30518A #406CB7 #698DCB #97B0DB

Accessibility & contrast

On white

5.19
#406CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#406CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406CB7
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406CB7#FFFFFF#000000##FFFFFF
##406CB71.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A73BA
Deuteranopia (green-blind)
#3868B5
Tritanopia (blue-blind)
#007D88
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #406cb7;
/* rgb */ color: rgb(64, 108, 183);
/* oklch */ color: oklch(53.7% 0.128 260.4);
Tailwind
colors: {
  custom: {
    50: '#8195cd',
    500: '#406cb7',
    950: '#000000',
  },
}
SCSS
$custom: #406cb7;
$custom-light: #8195cd;
$custom-dark: #000000;
JSON
{
  "hex": "#406cb7",
  "rgb": {
    "r": 64,
    "g": 108,
    "b": 183
  },
  "hsl": {
    "h": 217.815,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.53685,
    "c": 0.12774,
    "h": 260.4
  },
  "luminance": 0.15234
}

Semantic roles & 50–950 ramp

primary
#406CB7
secondary
#C6B18D
accent
#A650D8
background
#F8F9FC
surface
#EFF1F9
border
#CACBD2
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #406CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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