#406EC4#406EC4

#406EC4 is a mid, vivid blue. Relative luminance 0.162; OKLCH L 54.9% C 0.143 H 261.7°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#406EC4
RGBrgb(64, 110, 196)
HSLhsl(219, 53%, 51%)
HSVhsv(219, 67%, 77%)
CMYKcmyk(67.3%, 43.9%, 0%, 23.1%)
CIE-LABlab(47.27, 12.55, -49.63)
CIE-LCHlch(47.27, 51.19, 284.19°)
OKLaboklab(54.95% -0.0207 -0.1418)
OKLCHoklch(54.95% 0.143 261.7)
XYZxyz(17.6506, 16.2256, 54.4155)
Luminance0.1623 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406EC4 #C49640
analogous
#40B0C4 #406EC4 #5440C4
triadic
#406EC4 #C4406E #6EC440
tetradic
#406EC4 #C440B0 #C49640 #40C454
square
#406EC4 #C440B0 #C49640 #40C454
split-complementary
#406EC4 #C45440 #B0C440
monochromatic
#203A69 #2F5398 #406EC4 #6F91D2 #9EB5E1

Accessibility & contrast

On white

4.95
#406EC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #406EC4
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406EC4#FFFFFF#000000##FFFFFF
##406EC41.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4577C7
Deuteranopia (green-blind)
#2E6AC2
Tritanopia (blue-blind)
#00828F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #406ec4;
/* rgb */ color: rgb(64, 110, 196);
/* oklch */ color: oklch(54.9% 0.143 261.7);
Tailwind
colors: {
  custom: {
    50: '#8397d6',
    500: '#406ec4',
    950: '#000000',
  },
}
SCSS
$custom: #406ec4;
$custom-light: #8397d6;
$custom-dark: #000000;
JSON
{
  "hex": "#406ec4",
  "rgb": {
    "r": 64,
    "g": 110,
    "b": 196
  },
  "hsl": {
    "h": 219.091,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.54947,
    "c": 0.14332,
    "h": 261.7
  },
  "luminance": 0.16227
}

Semantic roles & 50–950 ramp

primary
#406EC4
secondary
#CDB993
accent
#AA4CDC
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #406EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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