#406EC6#406EC6

#406EC6 is a mid, vivid blue. Relative luminance 0.163; OKLCH L 55.1% C 0.146 H 262.0°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#406EC6
RGBrgb(64, 110, 198)
HSLhsl(219, 54%, 51%)
HSVhsv(219, 68%, 78%)
CMYKcmyk(67.7%, 44.4%, 0%, 22.4%)
CIE-LABlab(47.39, 13.27, -50.59)
CIE-LCHlch(47.39, 52.30, 284.69°)
OKLaboklab(55.08% -0.0204 -0.1446)
OKLCHoklch(55.08% 0.146 262)
XYZxyz(17.8797, 16.3173, 55.6224)
Luminance0.1632 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406EC6 #C69840
analogous
#40B1C6 #406EC6 #5540C6
triadic
#406EC6 #C6406E #6EC640
tetradic
#406EC6 #C640B1 #C69840 #40C655
square
#406EC6 #C640B1 #C69840 #40C655
split-complementary
#406EC6 #C65540 #B1C640
monochromatic
#203A6C #2E539B #406EC6 #6F92D4 #9EB6E2

Accessibility & contrast

On white

4.93
#406EC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#406EC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406EC6
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406EC6#FFFFFF#000000##FFFFFF
##406EC61.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4377C9
Deuteranopia (green-blind)
#2B6BC4
Tritanopia (blue-blind)
#008290
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #406ec6;
/* rgb */ color: rgb(64, 110, 198);
/* oklch */ color: oklch(55.1% 0.146 262.0);
Tailwind
colors: {
  custom: {
    50: '#8397d8',
    500: '#406ec6',
    950: '#000000',
  },
}
SCSS
$custom: #406ec6;
$custom-light: #8397d8;
$custom-dark: #000000;
JSON
{
  "hex": "#406ec6",
  "rgb": {
    "r": 64,
    "g": 110,
    "b": 198
  },
  "hsl": {
    "h": 219.403,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.55077,
    "c": 0.14606,
    "h": 262
  },
  "luminance": 0.16319
}

Semantic roles & 50–950 ramp

primary
#406EC6
secondary
#CEBA93
accent
#AB4ADD
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #406EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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