#406CC5#406CC5

#406CC5 is a mid, vivid blue. Relative luminance 0.158; OKLCH L 54.6% C 0.147 H 262.7°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#406CC5
RGBrgb(64, 108, 197)
HSLhsl(220, 53%, 51%)
HSVhsv(220, 68%, 77%)
CMYKcmyk(67.5%, 45.2%, 0%, 22.7%)
CIE-LABlab(46.77, 14.17, -51.00)
CIE-LCHlch(46.77, 52.94, 285.52°)
OKLaboklab(54.58% -0.0186 -0.1459)
OKLCHoklch(54.58% 0.147 262.7)
XYZxyz(17.5514, 15.8446, 54.9458)
Luminance0.1585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406CC5 #C59940
analogous
#40AFC5 #406CC5 #5640C5
triadic
#406CC5 #C5406C #6CC540
tetradic
#406CC5 #C540AF #C59940 #40C556
square
#406CC5 #C540AF #C59940 #40C556
split-complementary
#406CC5 #C55640 #AFC540
monochromatic
#20396A #2F5299 #406CC5 #6F90D3 #9EB4E2

Accessibility & contrast

On white

5.04
#406CC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#406CC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406CC5
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406CC5#FFFFFF#000000##FFFFFF
##406CC51.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4075C8
Deuteranopia (green-blind)
#2769C3
Tritanopia (blue-blind)
#00818F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #406cc5;
/* rgb */ color: rgb(64, 108, 197);
/* oklch */ color: oklch(54.6% 0.147 262.7);
Tailwind
colors: {
  custom: {
    50: '#8395d7',
    500: '#406cc5',
    950: '#000000',
  },
}
SCSS
$custom: #406cc5;
$custom-light: #8395d7;
$custom-dark: #000000;
JSON
{
  "hex": "#406cc5",
  "rgb": {
    "r": 64,
    "g": 108,
    "b": 197
  },
  "hsl": {
    "h": 220.15,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.54582,
    "c": 0.14707,
    "h": 262.7
  },
  "luminance": 0.15846
}

Semantic roles & 50–950 ramp

primary
#406CC5
secondary
#CEBA93
accent
#AD4BDD
background
#F8F9FD
surface
#F0F1FA
border
#CBCBD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #406CC5

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

Preview Lab → · Contrast checker → · Palette generator →

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