#406BCC#406BCC

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

Color values

HEX#406BCC
RGBrgb(64, 107, 204)
HSLhsl(222, 58%, 53%)
HSVhsv(222, 69%, 80%)
CMYKcmyk(68.6%, 47.5%, 0%, 20%)
CIE-LABlab(46.93, 17.31, -54.77)
CIE-LCHlch(46.93, 57.44, 287.54°)
OKLaboklab(54.84% -0.0166 -0.157)
OKLCHoklch(54.84% 0.158 264)
XYZxyz(18.2673, 15.9632, 59.2335)
Luminance0.1596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406BCC #CCA140
analogous
#40B1CC #406BCC #5B40CC
triadic
#406BCC #CC406B #6BCC40
tetradic
#406BCC #CC40B1 #CCA140 #40CC5B
square
#406BCC #CC40B1 #CCA140 #40CC5B
split-complementary
#406BCC #CC5B40 #B1CC40
monochromatic
#1F3973 #2C50A3 #406BCC #7090D9 #A1B6E6

Accessibility & contrast

On white

5.01
#406BCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#406BCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406BCC
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406BCC#FFFFFF#000000##FFFFFF
##406BCC1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3776D0
Deuteranopia (green-blind)
#1569CA
Tritanopia (blue-blind)
#008292
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #406bcc;
/* rgb */ color: rgb(64, 107, 204);
/* oklch */ color: oklch(54.8% 0.158 264.0);
Tailwind
colors: {
  custom: {
    50: '#8494dc',
    500: '#406bcc',
    950: '#000000',
  },
}
SCSS
$custom: #406bcc;
$custom-light: #8494dc;
$custom-dark: #000000;
JSON
{
  "hex": "#406bcc",
  "rgb": {
    "r": 64,
    "g": 107,
    "b": 204
  },
  "hsl": {
    "h": 221.571,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54841,
    "c": 0.15786,
    "h": 264
  },
  "luminance": 0.15965
}

Semantic roles & 50–950 ramp

primary
#406BCC
secondary
#D2C095
accent
#B247E1
background
#F8F9FD
surface
#F0F1FB
border
#CBCBD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #406BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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