#406DC4#406DC4

#406DC4 is a mid, vivid blue. Relative luminance 0.160; OKLCH L 54.7% C 0.144 H 262.1°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#406DC4
RGBrgb(64, 109, 196)
HSLhsl(220, 53%, 51%)
HSVhsv(220, 67%, 77%)
CMYKcmyk(67.3%, 44.4%, 0%, 23.1%)
CIE-LABlab(46.99, 13.18, -50.08)
CIE-LCHlch(46.99, 51.78, 284.74°)
OKLaboklab(54.73% -0.0198 -0.1431)
OKLCHoklch(54.73% 0.145 262.1)
XYZxyz(17.5433, 16.0111, 54.3798)
Luminance0.1601 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406DC4 #C49740
analogous
#40AFC4 #406DC4 #5540C4
triadic
#406DC4 #C4406D #6DC440
tetradic
#406DC4 #C440AF #C49740 #40C455
square
#406DC4 #C440AF #C49740 #40C455
split-complementary
#406DC4 #C45540 #AFC440
monochromatic
#203969 #2F5398 #406DC4 #6F91D2 #9EB4E1

Accessibility & contrast

On white

5.00
#406DC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#406DC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406DC4
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406DC4#FFFFFF#000000##FFFFFF
##406DC41.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4376C7
Deuteranopia (green-blind)
#2B6AC2
Tritanopia (blue-blind)
#00818F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #406dc4;
/* rgb */ color: rgb(64, 109, 196);
/* oklch */ color: oklch(54.7% 0.144 262.1);
Tailwind
colors: {
  custom: {
    50: '#8396d6',
    500: '#406dc4',
    950: '#000000',
  },
}
SCSS
$custom: #406dc4;
$custom-light: #8396d6;
$custom-dark: #000000;
JSON
{
  "hex": "#406dc4",
  "rgb": {
    "r": 64,
    "g": 109,
    "b": 196
  },
  "hsl": {
    "h": 219.545,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.54731,
    "c": 0.1445,
    "h": 262.1
  },
  "luminance": 0.16013
}

Semantic roles & 50–950 ramp

primary
#406DC4
secondary
#CDB993
accent
#AB4CDC
background
#F8F9FD
surface
#F0F1FA
border
#CBCBD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #406DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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