#406BCB#406BCB

#406BCB is a mid, vivid blue. Relative luminance 0.159; OKLCH L 54.8% C 0.156 H 263.8°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#406BCB
RGBrgb(64, 107, 203)
HSLhsl(221, 57%, 52%)
HSVhsv(221, 68%, 80%)
CMYKcmyk(68.5%, 47.3%, 0%, 20.4%)
CIE-LABlab(46.86, 16.95, -54.30)
CIE-LCHlch(46.86, 56.89, 287.34°)
OKLaboklab(54.77% -0.0168 -0.1556)
OKLCHoklch(54.77% 0.156 263.8)
XYZxyz(18.1477, 15.9154, 58.6039)
Luminance0.1592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406BCB #CBA040
analogous
#40B1CB #406BCB #5B40CB
triadic
#406BCB #CB406B #6BCB40
tetradic
#406BCB #CB40B1 #CBA040 #40CB5B
square
#406BCB #CB40B1 #CBA040 #40CB5B
split-complementary
#406BCB #CB5B40 #B1CB40
monochromatic
#1F3972 #2C50A2 #406BCB #7090D8 #A0B6E5

Accessibility & contrast

On white

5.02
#406BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#406BCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406BCB
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406BCB#FFFFFF#000000##FFFFFF
##406BCB1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3876CF
Deuteranopia (green-blind)
#1869C9
Tritanopia (blue-blind)
#008191
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #406bcb;
/* rgb */ color: rgb(64, 107, 203);
/* oklch */ color: oklch(54.8% 0.156 263.8);
Tailwind
colors: {
  custom: {
    50: '#8494db',
    500: '#406bcb',
    950: '#000000',
  },
}
SCSS
$custom: #406bcb;
$custom-light: #8494db;
$custom-dark: #000000;
JSON
{
  "hex": "#406bcb",
  "rgb": {
    "r": 64,
    "g": 107,
    "b": 203
  },
  "hsl": {
    "h": 221.439,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.54773,
    "c": 0.15649,
    "h": 263.8
  },
  "luminance": 0.15917
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #406BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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