#406CBC#406CBC

#406CBC is a mid, vivid blue. Relative luminance 0.154; OKLCH L 54.0% C 0.135 H 261.3°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#406CBC
RGBrgb(64, 108, 188)
HSLhsl(219, 49%, 49%)
HSVhsv(219, 66%, 74%)
CMYKcmyk(66%, 42.6%, 0%, 26.3%)
CIE-LABlab(46.24, 10.95, -46.66)
CIE-LCHlch(46.24, 47.93, 283.20°)
OKLaboklab(54% -0.0203 -0.1331)
OKLCHoklch(54% 0.135 261.3)
XYZxyz(16.5508, 15.4444, 49.6760)
Luminance0.1545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406CBC #BC9040
analogous
#40AABC #406CBC #5240BC
triadic
#406CBC #BC406C #6CBC40
tetradic
#406CBC #BC40AA #BC9040 #40BC52
square
#406CBC #BC40AA #BC9040 #40BC52
split-complementary
#406CBC #BC5240 #AABC40
monochromatic
#213861 #30528E #406CBC #6C8FCD #9AB2DD

Accessibility & contrast

On white

5.14
#406CBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#406CBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406CBC
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406CBC#FFFFFF#000000##FFFFFF
##406CBC1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4774BF
Deuteranopia (green-blind)
#3368BA
Tritanopia (blue-blind)
#007E8B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #406cbc;
/* rgb */ color: rgb(64, 108, 188);
/* oklch */ color: oklch(54.0% 0.135 261.3);
Tailwind
colors: {
  custom: {
    50: '#8195d0',
    500: '#406cbc',
    950: '#000000',
  },
}
SCSS
$custom: #406cbc;
$custom-light: #8195d0;
$custom-dark: #000000;
JSON
{
  "hex": "#406cbc",
  "rgb": {
    "r": 64,
    "g": 108,
    "b": 188
  },
  "hsl": {
    "h": 218.71,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.53999,
    "c": 0.13466,
    "h": 261.3
  },
  "luminance": 0.15446
}

Semantic roles & 50–950 ramp

primary
#406CBC
secondary
#C9B48F
accent
#A84FD9
background
#F8F9FC
surface
#F0F1F9
border
#CBCBD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #406CBC

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

Preview Lab → · Contrast checker → · Palette generator →

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