#406AC7#406AC7

#406AC7 is a mid, vivid blue. Relative luminance 0.155; OKLCH L 54.3% C 0.152 H 263.8°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#406AC7
RGBrgb(64, 106, 199)
HSLhsl(221, 55%, 52%)
HSVhsv(221, 68%, 78%)
CMYKcmyk(67.8%, 46.7%, 0%, 22%)
CIE-LABlab(46.34, 16.15, -52.85)
CIE-LCHlch(46.34, 55.26, 286.99°)
OKLaboklab(54.29% -0.0164 -0.1513)
OKLCHoklch(54.29% 0.152 263.8)
XYZxyz(17.5736, 15.5198, 56.0912)
Luminance0.1552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406AC7 #C79D40
analogous
#40AEC7 #406AC7 #5A40C7
triadic
#406AC7 #C7406A #6AC740
tetradic
#406AC7 #C740AE #C79D40 #40C75A
square
#406AC7 #C740AE #C79D40 #40C75A
split-complementary
#406AC7 #C75A40 #AEC740
monochromatic
#20386D #2E509C #406AC7 #6F8FD5 #9FB4E3

Accessibility & contrast

On white

5.12
#406AC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#406AC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406AC7
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406AC7#FFFFFF#000000##FFFFFF
##406AC71.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A74CA
Deuteranopia (green-blind)
#1E68C5
Tritanopia (blue-blind)
#00808F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #406ac7;
/* rgb */ color: rgb(64, 106, 199);
/* oklch */ color: oklch(54.3% 0.152 263.8);
Tailwind
colors: {
  custom: {
    50: '#8494d8',
    500: '#406ac7',
    950: '#000000',
  },
}
SCSS
$custom: #406ac7;
$custom-light: #8494d8;
$custom-dark: #000000;
JSON
{
  "hex": "#406ac7",
  "rgb": {
    "r": 64,
    "g": 106,
    "b": 199
  },
  "hsl": {
    "h": 221.333,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.5429,
    "c": 0.15222,
    "h": 263.8
  },
  "luminance": 0.15522
}

Semantic roles & 50–950 ramp

primary
#406AC7
secondary
#CFBD94
accent
#B04ADE
background
#F8F9FD
surface
#F0F1FA
border
#CBCBD3
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #406AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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