#406EC3#406EC3

#406EC3 is a mid, vivid blue. Relative luminance 0.162; OKLCH L 54.9% C 0.142 H 261.5°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#406EC3
RGBrgb(64, 110, 195)
HSLhsl(219, 52%, 51%)
HSVhsv(219, 67%, 76%)
CMYKcmyk(67.2%, 43.6%, 0%, 23.5%)
CIE-LABlab(47.21, 12.19, -49.15)
CIE-LCHlch(47.21, 50.64, 283.93°)
OKLaboklab(54.88% -0.0209 -0.1404)
OKLCHoklch(54.88% 0.142 261.5)
XYZxyz(17.5371, 16.1802, 53.8181)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406EC3 #C39540
analogous
#40AFC3 #406EC3 #5340C3
triadic
#406EC3 #C3406E #6EC340
tetradic
#406EC3 #C340AF #C39540 #40C353
square
#406EC3 #C340AF #C39540 #40C353
split-complementary
#406EC3 #C35340 #AFC340
monochromatic
#213A68 #2F5497 #406EC3 #6F91D2 #9DB5E0

Accessibility & contrast

On white

4.96
#406EC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#406EC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406EC3
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406EC3#FFFFFF#000000##FFFFFF
##406EC31.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4576C6
Deuteranopia (green-blind)
#2F6AC1
Tritanopia (blue-blind)
#00828F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #406ec3;
/* rgb */ color: rgb(64, 110, 195);
/* oklch */ color: oklch(54.9% 0.142 261.5);
Tailwind
colors: {
  custom: {
    50: '#8397d6',
    500: '#406ec3',
    950: '#000000',
  },
}
SCSS
$custom: #406ec3;
$custom-light: #8397d6;
$custom-dark: #000000;
JSON
{
  "hex": "#406ec3",
  "rgb": {
    "r": 64,
    "g": 110,
    "b": 195
  },
  "hsl": {
    "h": 218.931,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.54882,
    "c": 0.14195,
    "h": 261.5
  },
  "luminance": 0.16182
}

Semantic roles & 50–950 ramp

primary
#406EC3
secondary
#CCB892
accent
#A94CDC
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #406EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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