#406BC8#406BC8

#406BC8 is a mid, vivid blue. Relative luminance 0.158; OKLCH L 54.6% C 0.152 H 263.5°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#406BC8
RGBrgb(64, 107, 200)
HSLhsl(221, 55%, 52%)
HSVhsv(221, 68%, 78%)
CMYKcmyk(68%, 46.5%, 0%, 21.6%)
CIE-LABlab(46.68, 15.87, -52.88)
CIE-LCHlch(46.68, 55.21, 286.71°)
OKLaboklab(54.57% -0.0172 -0.1514)
OKLCHoklch(54.57% 0.152 263.5)
XYZxyz(17.7937, 15.7737, 56.7393)
Luminance0.1578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406BC8 #C89D40
analogous
#40AFC8 #406BC8 #5940C8
triadic
#406BC8 #C8406B #6BC840
tetradic
#406BC8 #C840AF #C89D40 #40C859
square
#406BC8 #C840AF #C89D40 #40C859
split-complementary
#406BC8 #C85940 #AFC840
monochromatic
#20386E #2D519D #406BC8 #7090D6 #9FB5E3

Accessibility & contrast

On white

5.05
#406BC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#406BC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406BC8
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406BC8#FFFFFF#000000##FFFFFF
##406BC81.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B75CB
Deuteranopia (green-blind)
#1F69C6
Tritanopia (blue-blind)
#008190
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #406bc8;
/* rgb */ color: rgb(64, 107, 200);
/* oklch */ color: oklch(54.6% 0.152 263.5);
Tailwind
colors: {
  custom: {
    50: '#8494d9',
    500: '#406bc8',
    950: '#000000',
  },
}
SCSS
$custom: #406bc8;
$custom-light: #8494d9;
$custom-dark: #000000;
JSON
{
  "hex": "#406bc8",
  "rgb": {
    "r": 64,
    "g": 107,
    "b": 200
  },
  "hsl": {
    "h": 221.029,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.54569,
    "c": 0.15239,
    "h": 263.5
  },
  "luminance": 0.15776
}

Semantic roles & 50–950 ramp

primary
#406BC8
secondary
#D0BD94
accent
#AF49DF
background
#F8F9FD
surface
#F0F1FA
border
#CBCBD3
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #406BC8

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

Preview Lab → · Contrast checker → · Palette generator →

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