#406DB7#406DB7

#406DB7 is a mid, vivid blue. Relative luminance 0.154; OKLCH L 53.9% C 0.127 H 259.8°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#406DB7
RGBrgb(64, 109, 183)
HSLhsl(217, 48%, 48%)
HSVhsv(217, 65%, 72%)
CMYKcmyk(65%, 40.4%, 0%, 28.2%)
CIE-LABlab(46.24, 8.54, -43.76)
CIE-LCHlch(46.24, 44.59, 281.05°)
OKLaboklab(53.91% -0.0223 -0.1246)
OKLCHoklch(53.91% 0.127 259.8)
XYZxyz(16.1272, 15.4446, 46.9218)
Luminance0.1545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406DB7 #B78A40
analogous
#40A8B7 #406DB7 #4E40B7
triadic
#406DB7 #B7406D #6DB740
tetradic
#406DB7 #B740A8 #B78A40 #40B74E
square
#406DB7 #B740A8 #B78A40 #40B74E
split-complementary
#406DB7 #B74E40 #A8B740
monochromatic
#20375C #30528A #406DB7 #698ECB #97B0DB

Accessibility & contrast

On white

5.14
#406DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#406DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406DB7
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406DB7#FFFFFF#000000##FFFFFF
##406DB71.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C74BA
Deuteranopia (green-blind)
#3A68B5
Tritanopia (blue-blind)
#007E89
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #406db7;
/* rgb */ color: rgb(64, 109, 183);
/* oklch */ color: oklch(53.9% 0.127 259.8);
Tailwind
colors: {
  custom: {
    50: '#8196cd',
    500: '#406db7',
    950: '#000000',
  },
}
SCSS
$custom: #406db7;
$custom-light: #8196cd;
$custom-dark: #000000;
JSON
{
  "hex": "#406db7",
  "rgb": {
    "r": 64,
    "g": 109,
    "b": 183
  },
  "hsl": {
    "h": 217.311,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.53907,
    "c": 0.12659,
    "h": 259.8
  },
  "luminance": 0.15446
}

Semantic roles & 50–950 ramp

primary
#406DB7
secondary
#C6B08D
accent
#A450D8
background
#F8F9FC
surface
#EFF1F9
border
#CACBD2
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #406DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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