#406DB5#406DB5

#406DB5 is a mid, vivid blue. Relative luminance 0.154; OKLCH L 53.8% C 0.124 H 259.4°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#406DB5
RGBrgb(64, 109, 181)
HSLhsl(217, 48%, 48%)
HSVhsv(217, 65%, 71%)
CMYKcmyk(64.6%, 39.8%, 0%, 29%)
CIE-LABlab(46.13, 7.83, -42.78)
CIE-LCHlch(46.13, 43.49, 280.38°)
OKLaboklab(53.79% -0.0228 -0.1217)
OKLCHoklch(53.79% 0.124 259.4)
XYZxyz(15.9205, 15.3620, 45.8332)
Luminance0.1536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406DB5 #B58840
analogous
#40A7B5 #406DB5 #4D40B5
triadic
#406DB5 #B5406D #6DB540
tetradic
#406DB5 #B540A7 #B58840 #40B54D
square
#406DB5 #B540A7 #B58840 #40B54D
split-complementary
#406DB5 #B54D40 #A7B540
monochromatic
#20375B #305288 #406DB5 #688ECA #96B0DA

Accessibility & contrast

On white

5.16
#406DB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#406DB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406DB5
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406DB5#FFFFFF#000000##FFFFFF
##406DB51.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #406db5;
/* rgb */ color: rgb(64, 109, 181);
/* oklch */ color: oklch(53.8% 0.124 259.4);
Tailwind
colors: {
  custom: {
    50: '#8096cb',
    500: '#406db5',
    950: '#000000',
  },
}
SCSS
$custom: #406db5;
$custom-light: #8096cb;
$custom-dark: #000000;
JSON
{
  "hex": "#406db5",
  "rgb": {
    "r": 64,
    "g": 109,
    "b": 181
  },
  "hsl": {
    "h": 216.923,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.53785,
    "c": 0.12382,
    "h": 259.4
  },
  "luminance": 0.15363
}

Semantic roles & 50–950 ramp

primary
#406DB5
secondary
#C5AF8B
accent
#A350D7
background
#F8F9FC
surface
#EFF1F8
border
#CACBD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #406DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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