#406DB8#406DB8

#406DB8 is a mid, vivid blue. Relative luminance 0.155; OKLCH L 54.0% C 0.128 H 260.0°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#406DB8
RGBrgb(64, 109, 184)
HSLhsl(218, 48%, 49%)
HSVhsv(218, 65%, 72%)
CMYKcmyk(65.2%, 40.8%, 0%, 27.8%)
CIE-LABlab(46.29, 8.90, -44.25)
CIE-LCHlch(46.29, 45.14, 281.37°)
OKLaboklab(53.97% -0.0221 -0.126)
OKLCHoklch(53.97% 0.128 260)
XYZxyz(16.2316, 15.4864, 47.4719)
Luminance0.1549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406DB8 #B88B40
analogous
#40A9B8 #406DB8 #4F40B8
triadic
#406DB8 #B8406D #6DB840
tetradic
#406DB8 #B840A9 #B88B40 #40B84F
square
#406DB8 #B840A9 #B88B40 #40B84F
split-complementary
#406DB8 #B84F40 #A9B840
monochromatic
#20375D #30528B #406DB8 #6A8ECB #97B1DB

Accessibility & contrast

On white

5.12
#406DB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#406DB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406DB8
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406DB8#FFFFFF#000000##FFFFFF
##406DB81.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B74BB
Deuteranopia (green-blind)
#3969B6
Tritanopia (blue-blind)
#007E89
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #406db8;
/* rgb */ color: rgb(64, 109, 184);
/* oklch */ color: oklch(54.0% 0.128 260.0);
Tailwind
colors: {
  custom: {
    50: '#8196ce',
    500: '#406db8',
    950: '#000000',
  },
}
SCSS
$custom: #406db8;
$custom-light: #8196ce;
$custom-dark: #000000;
JSON
{
  "hex": "#406db8",
  "rgb": {
    "r": 64,
    "g": 109,
    "b": 184
  },
  "hsl": {
    "h": 217.5,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.53969,
    "c": 0.12797,
    "h": 260
  },
  "luminance": 0.15488
}

Semantic roles & 50–950 ramp

primary
#406DB8
secondary
#C7B18D
accent
#A550D8
background
#F8F9FC
surface
#EFF1F9
border
#CACBD2
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #406DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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