#406DB3#406DB3

#406DB3 is a mid, vivid blue. Relative luminance 0.153; OKLCH L 53.7% C 0.121 H 258.9°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#406DB3
RGBrgb(64, 109, 179)
HSLhsl(217, 47%, 48%)
HSVhsv(217, 64%, 70%)
CMYKcmyk(64.2%, 39.1%, 0%, 29.8%)
CIE-LABlab(46.02, 7.13, -41.79)
CIE-LCHlch(46.02, 42.39, 279.68°)
OKLaboklab(53.66% -0.0232 -0.1188)
OKLCHoklch(53.66% 0.121 258.9)
XYZxyz(15.7168, 15.2805, 44.7602)
Luminance0.1528 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406DB3 #B38640
analogous
#40A6B3 #406DB3 #4D40B3
triadic
#406DB3 #B3406D #6DB340
tetradic
#406DB3 #B340A6 #B38640 #40B34D
square
#406DB3 #B340A6 #B38640 #40B34D
split-complementary
#406DB3 #B34D40 #A6B340
monochromatic
#203659 #305286 #406DB3 #678EC9 #94AFD9

Accessibility & contrast

On white

5.18
#406DB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#406DB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406DB3
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406DB3#FFFFFF#000000##FFFFFF
##406DB31.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E73B6
Deuteranopia (green-blind)
#3E68B2
Tritanopia (blue-blind)
#007D87
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #406db3;
/* rgb */ color: rgb(64, 109, 179);
/* oklch */ color: oklch(53.7% 0.121 258.9);
Tailwind
colors: {
  custom: {
    50: '#8096ca',
    500: '#406db3',
    950: '#000000',
  },
}
SCSS
$custom: #406db3;
$custom-light: #8096ca;
$custom-dark: #000000;
JSON
{
  "hex": "#406db3",
  "rgb": {
    "r": 64,
    "g": 109,
    "b": 179
  },
  "hsl": {
    "h": 216.522,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.53663,
    "c": 0.12106,
    "h": 258.9
  },
  "luminance": 0.15282
}

Semantic roles & 50–950 ramp

primary
#406DB3
secondary
#C4AE8A
accent
#A251D7
background
#F8F9FC
surface
#EFF1F8
border
#CACBD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #406DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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