#406EC2#406EC2

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

Color values

HEX#406EC2
RGBrgb(64, 110, 194)
HSLhsl(219, 52%, 51%)
HSVhsv(219, 67%, 76%)
CMYKcmyk(67%, 43.3%, 0%, 23.9%)
CIE-LABlab(47.15, 11.83, -48.67)
CIE-LCHlch(47.15, 50.08, 283.67°)
OKLaboklab(54.82% -0.0211 -0.139)
OKLCHoklch(54.82% 0.141 261.4)
XYZxyz(17.4244, 16.1352, 53.2246)
Luminance0.1614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406EC2 #C29440
analogous
#40AFC2 #406EC2 #5340C2
triadic
#406EC2 #C2406E #6EC240
tetradic
#406EC2 #C240AF #C29440 #40C253
square
#406EC2 #C240AF #C29440 #40C253
split-complementary
#406EC2 #C25340 #AFC240
monochromatic
#213A67 #305495 #406EC2 #6E91D1 #9DB4E0

Accessibility & contrast

On white

4.97
#406EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#406EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406EC2
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406EC2#FFFFFF#000000##FFFFFF
##406EC21.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4676C5
Deuteranopia (green-blind)
#306AC0
Tritanopia (blue-blind)
#00818E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #406ec2;
/* rgb */ color: rgb(64, 110, 194);
/* oklch */ color: oklch(54.8% 0.141 261.4);
Tailwind
colors: {
  custom: {
    50: '#8397d5',
    500: '#406ec2',
    950: '#000000',
  },
}
SCSS
$custom: #406ec2;
$custom-light: #8397d5;
$custom-dark: #000000;
JSON
{
  "hex": "#406ec2",
  "rgb": {
    "r": 64,
    "g": 110,
    "b": 194
  },
  "hsl": {
    "h": 218.769,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.54818,
    "c": 0.14057,
    "h": 261.4
  },
  "luminance": 0.16137
}

Semantic roles & 50–950 ramp

primary
#406EC2
secondary
#CCB792
accent
#A94DDB
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #406EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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