#406CC8#406CC8

#406CC8 is a mid, vivid blue. Relative luminance 0.160; OKLCH L 54.8% C 0.151 H 263.1°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#406CC8
RGBrgb(64, 108, 200)
HSLhsl(221, 55%, 52%)
HSVhsv(221, 68%, 78%)
CMYKcmyk(68%, 46%, 0%, 21.6%)
CIE-LABlab(46.95, 15.24, -52.44)
CIE-LCHlch(46.95, 54.61, 286.21°)
OKLaboklab(54.78% -0.0181 -0.1501)
OKLCHoklch(54.78% 0.151 263.1)
XYZxyz(17.8986, 15.9835, 56.7742)
Luminance0.1598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406CC8 #C89C40
analogous
#40B0C8 #406CC8 #5840C8
triadic
#406CC8 #C8406C #6CC840
tetradic
#406CC8 #C840B0 #C89C40 #40C858
square
#406CC8 #C840B0 #C89C40 #40C858
split-complementary
#406CC8 #C85840 #B0C840
monochromatic
#20396E #2D529D #406CC8 #7091D6 #9FB5E3

Accessibility & contrast

On white

5.00
#406CC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#406CC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406CC8
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406CC8#FFFFFF#000000##FFFFFF
##406CC81.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D76CB
Deuteranopia (green-blind)
#2269C6
Tritanopia (blue-blind)
#008190
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #406cc8;
/* rgb */ color: rgb(64, 108, 200);
/* oklch */ color: oklch(54.8% 0.151 263.1);
Tailwind
colors: {
  custom: {
    50: '#8495d9',
    500: '#406cc8',
    950: '#000000',
  },
}
SCSS
$custom: #406cc8;
$custom-light: #8495d9;
$custom-dark: #000000;
JSON
{
  "hex": "#406cc8",
  "rgb": {
    "r": 64,
    "g": 108,
    "b": 200
  },
  "hsl": {
    "h": 220.588,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.54782,
    "c": 0.15118,
    "h": 263.1
  },
  "luminance": 0.15985
}

Semantic roles & 50–950 ramp

primary
#406CC8
secondary
#D0BC94
accent
#AE49DF
background
#F8F9FD
surface
#F0F1FA
border
#CBCBD3
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #406CC8

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

Preview Lab → · Contrast checker → · Palette generator →

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