#406CB5#406CB5

#406CB5 is a mid, vivid blue. Relative luminance 0.152; OKLCH L 53.6% C 0.125 H 260.0°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#406CB5
RGBrgb(64, 108, 181)
HSLhsl(217, 48%, 48%)
HSVhsv(217, 65%, 71%)
CMYKcmyk(64.6%, 40.3%, 0%, 29%)
CIE-LABlab(45.84, 8.46, -43.23)
CIE-LCHlch(45.84, 44.05, 281.07°)
OKLaboklab(53.56% -0.0217 -0.1231)
OKLCHoklch(53.56% 0.125 260)
XYZxyz(15.8144, 15.1498, 45.7979)
Luminance0.1515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406CB5 #B58940
analogous
#40A6B5 #406CB5 #4E40B5
triadic
#406CB5 #B5406C #6CB540
tetradic
#406CB5 #B540A6 #B58940 #40B54E
square
#406CB5 #B540A6 #B58940 #40B54E
split-complementary
#406CB5 #B54E40 #A6B540
monochromatic
#20365B #305188 #406CB5 #688DCA #96AFDA

Accessibility & contrast

On white

5.21
#406CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#406CB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406CB5
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406CB5#FFFFFF#000000##FFFFFF
##406CB51.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B72B8
Deuteranopia (green-blind)
#3A68B3
Tritanopia (blue-blind)
#007D88
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #406cb5;
/* rgb */ color: rgb(64, 108, 181);
/* oklch */ color: oklch(53.6% 0.125 260.0);
Tailwind
colors: {
  custom: {
    50: '#8095cb',
    500: '#406cb5',
    950: '#000000',
  },
}
SCSS
$custom: #406cb5;
$custom-light: #8095cb;
$custom-dark: #000000;
JSON
{
  "hex": "#406cb5",
  "rgb": {
    "r": 64,
    "g": 108,
    "b": 181
  },
  "hsl": {
    "h": 217.436,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.53562,
    "c": 0.12497,
    "h": 260
  },
  "luminance": 0.15151
}

Semantic roles & 50–950 ramp

primary
#406CB5
secondary
#C5B08B
accent
#A550D7
background
#F8F9FC
surface
#EFF1F8
border
#CACBD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #406CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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