#406CBF#406CBF

#406CBF is a mid, vivid blue. Relative luminance 0.156; OKLCH L 54.2% C 0.139 H 261.8°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#406CBF
RGBrgb(64, 108, 191)
HSLhsl(219, 50%, 50%)
HSVhsv(219, 66%, 75%)
CMYKcmyk(66.5%, 43.5%, 0%, 25.1%)
CIE-LABlab(46.41, 12.02, -48.12)
CIE-LCHlch(46.41, 49.60, 284.02°)
OKLaboklab(54.19% -0.0197 -0.1374)
OKLCHoklch(54.19% 0.139 261.8)
XYZxyz(16.8776, 15.5751, 51.3969)
Luminance0.1558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406CBF #BF9340
analogous
#40ABBF #406CBF #5440BF
triadic
#406CBF #BF406C #6CBF40
tetradic
#406CBF #BF40AB #BF9340 #40BF54
square
#406CBF #BF40AB #BF9340 #40BF54
split-complementary
#406CBF #BF5440 #ABBF40
monochromatic
#213863 #315291 #406CBF #6E8FCE #9CB3DE

Accessibility & contrast

On white

5.10
#406CBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#406CBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406CBF
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406CBF#FFFFFF#000000##FFFFFF
##406CBF1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4574C2
Deuteranopia (green-blind)
#3069BD
Tritanopia (blue-blind)
#007F8C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #406cbf;
/* rgb */ color: rgb(64, 108, 191);
/* oklch */ color: oklch(54.2% 0.139 261.8);
Tailwind
colors: {
  custom: {
    50: '#8295d3',
    500: '#406cbf',
    950: '#000000',
  },
}
SCSS
$custom: #406cbf;
$custom-light: #8295d3;
$custom-dark: #000000;
JSON
{
  "hex": "#406cbf",
  "rgb": {
    "r": 64,
    "g": 108,
    "b": 191
  },
  "hsl": {
    "h": 219.213,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.54191,
    "c": 0.13881,
    "h": 261.8
  },
  "luminance": 0.15577
}

Semantic roles & 50–950 ramp

primary
#406CBF
secondary
#CAB691
accent
#A94ED9
background
#F8F9FD
surface
#F0F1FA
border
#CBCBD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #406CBF

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

Preview Lab → · Contrast checker → · Palette generator →

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