#406BC5#406BC5

#406BC5 is a mid, vivid blue. Relative luminance 0.156; OKLCH L 54.4% C 0.148 H 263.1°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#406BC5
RGBrgb(64, 107, 197)
HSLhsl(221, 53%, 51%)
HSVhsv(221, 68%, 77%)
CMYKcmyk(67.5%, 45.7%, 0%, 22.7%)
CIE-LABlab(46.49, 14.80, -51.45)
CIE-LCHlch(46.49, 53.54, 286.05°)
OKLaboklab(54.37% -0.0177 -0.1472)
OKLCHoklch(54.37% 0.148 263.1)
XYZxyz(17.4465, 15.6349, 54.9109)
Luminance0.1564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406BC5 #C59A40
analogous
#40ADC5 #406BC5 #5740C5
triadic
#406BC5 #C5406B #6BC540
tetradic
#406BC5 #C540AD #C59A40 #40C557
square
#406BC5 #C540AD #C59A40 #40C557
split-complementary
#406BC5 #C55740 #ADC540
monochromatic
#20386A #2F5199 #406BC5 #6F8FD3 #9EB4E2

Accessibility & contrast

On white

5.09
#406BC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#406BC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406BC5
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406BC5#FFFFFF#000000##FFFFFF
##406BC51.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E75C8
Deuteranopia (green-blind)
#2568C3
Tritanopia (blue-blind)
#00808E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #406bc5;
/* rgb */ color: rgb(64, 107, 197);
/* oklch */ color: oklch(54.4% 0.148 263.1);
Tailwind
colors: {
  custom: {
    50: '#8394d7',
    500: '#406bc5',
    950: '#000000',
  },
}
SCSS
$custom: #406bc5;
$custom-light: #8394d7;
$custom-dark: #000000;
JSON
{
  "hex": "#406bc5",
  "rgb": {
    "r": 64,
    "g": 107,
    "b": 197
  },
  "hsl": {
    "h": 220.602,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.54368,
    "c": 0.14827,
    "h": 263.1
  },
  "luminance": 0.15637
}

Semantic roles & 50–950 ramp

primary
#406BC5
secondary
#CEBB93
accent
#AE4BDD
background
#F8F9FD
surface
#F0F1FA
border
#CBCBD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #406BC5

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

Preview Lab → · Contrast checker → · Palette generator →

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