#406DC5#406DC5

#406DC5 is a mid, vivid blue. Relative luminance 0.161; OKLCH L 54.8% C 0.146 H 262.3°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#406DC5
RGBrgb(64, 109, 197)
HSLhsl(220, 53%, 51%)
HSVhsv(220, 68%, 77%)
CMYKcmyk(67.5%, 44.7%, 0%, 22.7%)
CIE-LABlab(47.05, 13.54, -50.56)
CIE-LCHlch(47.05, 52.34, 284.99°)
OKLaboklab(54.8% -0.0196 -0.1446)
OKLCHoklch(54.8% 0.146 262.3)
XYZxyz(17.6575, 16.0567, 54.9812)
Luminance0.1606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406DC5 #C59840
analogous
#40B0C5 #406DC5 #5540C5
triadic
#406DC5 #C5406D #6DC540
tetradic
#406DC5 #C540B0 #C59840 #40C555
square
#406DC5 #C540B0 #C59840 #40C555
split-complementary
#406DC5 #C55540 #B0C540
monochromatic
#20396A #2F5399 #406DC5 #6F91D3 #9EB5E2

Accessibility & contrast

On white

4.99
#406DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#406DC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406DC5
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406DC5#FFFFFF#000000##FFFFFF
##406DC51.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4276C8
Deuteranopia (green-blind)
#2A6AC3
Tritanopia (blue-blind)
#00818F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #406dc5;
/* rgb */ color: rgb(64, 109, 197);
/* oklch */ color: oklch(54.8% 0.146 262.3);
Tailwind
colors: {
  custom: {
    50: '#8396d7',
    500: '#406dc5',
    950: '#000000',
  },
}
SCSS
$custom: #406dc5;
$custom-light: #8396d7;
$custom-dark: #000000;
JSON
{
  "hex": "#406dc5",
  "rgb": {
    "r": 64,
    "g": 109,
    "b": 197
  },
  "hsl": {
    "h": 219.699,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.54797,
    "c": 0.14587,
    "h": 262.3
  },
  "luminance": 0.16058
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #406DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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