#406CB8#406CB8

#406CB8 is a mid, vivid blue. Relative luminance 0.153; OKLCH L 53.7% C 0.129 H 260.6°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#406CB8
RGBrgb(64, 108, 184)
HSLhsl(218, 48%, 49%)
HSVhsv(218, 65%, 72%)
CMYKcmyk(65.2%, 41.3%, 0%, 27.8%)
CIE-LABlab(46.01, 9.52, -44.71)
CIE-LCHlch(46.01, 45.71, 282.03°)
OKLaboklab(53.75% -0.0211 -0.1274)
OKLCHoklch(53.75% 0.129 260.6)
XYZxyz(16.1256, 15.2743, 47.4365)
Luminance0.1528 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406CB8 #B88C40
analogous
#40A8B8 #406CB8 #5040B8
triadic
#406CB8 #B8406C #6CB840
tetradic
#406CB8 #B840A8 #B88C40 #40B850
square
#406CB8 #B840A8 #B88C40 #40B850
split-complementary
#406CB8 #B85040 #A8B840
monochromatic
#20375D #30518B #406CB8 #6A8ECB #97B0DB

Accessibility & contrast

On white

5.18
#406CB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#406CB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406CB8
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406CB8#FFFFFF#000000##FFFFFF
##406CB81.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4973BB
Deuteranopia (green-blind)
#3768B6
Tritanopia (blue-blind)
#007D89
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #406cb8;
/* rgb */ color: rgb(64, 108, 184);
/* oklch */ color: oklch(53.7% 0.129 260.6);
Tailwind
colors: {
  custom: {
    50: '#8195ce',
    500: '#406cb8',
    950: '#000000',
  },
}
SCSS
$custom: #406cb8;
$custom-light: #8195ce;
$custom-dark: #000000;
JSON
{
  "hex": "#406cb8",
  "rgb": {
    "r": 64,
    "g": 108,
    "b": 184
  },
  "hsl": {
    "h": 218,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.53748,
    "c": 0.12913,
    "h": 260.6
  },
  "luminance": 0.15276
}

Semantic roles & 50–950 ramp

primary
#406CB8
secondary
#C7B28D
accent
#A650D8
background
#F8F9FC
surface
#EFF1F9
border
#CACBD2
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #406CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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