#406EC5#406EC5

#406EC5 is a mid, vivid blue. Relative luminance 0.163; OKLCH L 55.0% C 0.145 H 261.8°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#406EC5
RGBrgb(64, 110, 197)
HSLhsl(219, 53%, 51%)
HSVhsv(219, 68%, 77%)
CMYKcmyk(67.5%, 44.2%, 0%, 22.7%)
CIE-LABlab(47.33, 12.91, -50.11)
CIE-LCHlch(47.33, 51.75, 284.45°)
OKLaboklab(55.01% -0.0205 -0.1432)
OKLCHoklch(55.01% 0.145 261.8)
XYZxyz(17.7648, 16.2713, 55.0170)
Luminance0.1627 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406EC5 #C59740
analogous
#40B0C5 #406EC5 #5440C5
triadic
#406EC5 #C5406E #6EC540
tetradic
#406EC5 #C540B0 #C59740 #40C554
square
#406EC5 #C540B0 #C59740 #40C554
split-complementary
#406EC5 #C55440 #B0C540
monochromatic
#203A6A #2F5399 #406EC5 #6F92D3 #9EB5E2

Accessibility & contrast

On white

4.94
#406EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#406EC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406EC5
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406EC5#FFFFFF#000000##FFFFFF
##406EC51.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4477C8
Deuteranopia (green-blind)
#2D6BC3
Tritanopia (blue-blind)
#008290
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #406ec5;
/* rgb */ color: rgb(64, 110, 197);
/* oklch */ color: oklch(55.0% 0.145 261.8);
Tailwind
colors: {
  custom: {
    50: '#8397d7',
    500: '#406ec5',
    950: '#000000',
  },
}
SCSS
$custom: #406ec5;
$custom-light: #8397d7;
$custom-dark: #000000;
JSON
{
  "hex": "#406ec5",
  "rgb": {
    "r": 64,
    "g": 110,
    "b": 197
  },
  "hsl": {
    "h": 219.248,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.55012,
    "c": 0.14469,
    "h": 261.8
  },
  "luminance": 0.16273
}

Semantic roles & 50–950 ramp

primary
#406EC5
secondary
#CEB993
accent
#AA4BDD
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #406EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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