#406CCB#406CCB

#406CCB is a mid, vivid blue. Relative luminance 0.161; OKLCH L 55.0% C 0.155 H 263.5°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#406CCB
RGBrgb(64, 108, 203)
HSLhsl(221, 57%, 52%)
HSVhsv(221, 68%, 80%)
CMYKcmyk(68.5%, 46.8%, 0%, 20.4%)
CIE-LABlab(47.14, 16.32, -53.86)
CIE-LCHlch(47.14, 56.28, 286.86°)
OKLaboklab(54.98% -0.0177 -0.1543)
OKLCHoklch(54.98% 0.155 263.5)
XYZxyz(18.2526, 16.1251, 58.6389)
Luminance0.1613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406CCB #CB9F40
analogous
#40B2CB #406CCB #5940CB
triadic
#406CCB #CB406C #6CCB40
tetradic
#406CCB #CB40B2 #CB9F40 #40CB59
square
#406CCB #CB40B2 #CB9F40 #40CB59
split-complementary
#406CCB #CB5940 #B2CB40
monochromatic
#1F3972 #2C51A2 #406CCB #7091D8 #A0B6E5

Accessibility & contrast

On white

4.97
#406CCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #406CCB
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406CCB#FFFFFF#000000##FFFFFF
##406CCB1.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #406ccb;
/* rgb */ color: rgb(64, 108, 203);
/* oklch */ color: oklch(55.0% 0.155 263.5);
Tailwind
colors: {
  custom: {
    50: '#8495db',
    500: '#406ccb',
    950: '#000000',
  },
}
SCSS
$custom: #406ccb;
$custom-light: #8495db;
$custom-dark: #000000;
JSON
{
  "hex": "#406ccb",
  "rgb": {
    "r": 64,
    "g": 108,
    "b": 203
  },
  "hsl": {
    "h": 221.007,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.54983,
    "c": 0.15529,
    "h": 263.5
  },
  "luminance": 0.16127
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #406CCB

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

Preview Lab → · Contrast checker → · Palette generator →

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