#406CCC#406CCC

#406CCC is a mid, vivid blue. Relative luminance 0.162; OKLCH L 55.1% C 0.157 H 263.6°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#406CCC
RGBrgb(64, 108, 204)
HSLhsl(221, 58%, 53%)
HSVhsv(221, 69%, 80%)
CMYKcmyk(68.6%, 47.1%, 0%, 20%)
CIE-LABlab(47.20, 16.68, -54.33)
CIE-LCHlch(47.20, 56.84, 287.07°)
OKLaboklab(55.05% -0.0175 -0.1557)
OKLCHoklch(55.05% 0.157 263.6)
XYZxyz(18.3722, 16.1729, 59.2685)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406CCC #CCA040
analogous
#40B2CC #406CCC #5A40CC
triadic
#406CCC #CC406C #6CCC40
tetradic
#406CCC #CC40B2 #CCA040 #40CC5A
square
#406CCC #CC40B2 #CCA040 #40CC5A
split-complementary
#406CCC #CC5A40 #B2CC40
monochromatic
#1F3973 #2C51A3 #406CCC #7091D9 #A1B6E6

Accessibility & contrast

On white

4.96
#406CCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#406CCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406CCC
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406CCC#FFFFFF#000000##FFFFFF
##406CCC1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A77D0
Deuteranopia (green-blind)
#1A6ACA
Tritanopia (blue-blind)
#008292
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #406ccc;
/* rgb */ color: rgb(64, 108, 204);
/* oklch */ color: oklch(55.1% 0.157 263.6);
Tailwind
colors: {
  custom: {
    50: '#8495dc',
    500: '#406ccc',
    950: '#000000',
  },
}
SCSS
$custom: #406ccc;
$custom-light: #8495dc;
$custom-dark: #000000;
JSON
{
  "hex": "#406ccc",
  "rgb": {
    "r": 64,
    "g": 108,
    "b": 204
  },
  "hsl": {
    "h": 221.143,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.55051,
    "c": 0.15665,
    "h": 263.6
  },
  "luminance": 0.16175
}

Semantic roles & 50–950 ramp

primary
#406CCC
secondary
#D2BF95
accent
#B147E1
background
#F8F9FD
surface
#F0F1FB
border
#CBCBD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #406CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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