#406EE2#406EE2

#406EE2 is a mid, vivid blue. Relative luminance 0.177; OKLCH L 57.0% C 0.184 H 264.8°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#406EE2
RGBrgb(64, 110, 226)
HSLhsl(223, 74%, 57%)
HSVhsv(223, 72%, 89%)
CMYKcmyk(71.7%, 51.3%, 0%, 11.4%)
CIE-LABlab(49.17, 23.34, -63.67)
CIE-LCHlch(49.17, 67.81, 290.14°)
OKLaboklab(57.01% -0.0165 -0.1831)
OKLCHoklch(57.01% 0.184 264.8)
XYZxyz(21.4129, 17.7306, 74.2306)
Luminance0.1773 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406EE2 #E2B440
analogous
#40BFE2 #406EE2 #6340E2
triadic
#406EE2 #E2406E #6EE240
tetradic
#406EE2 #E240BF #E2B440 #40E263
square
#406EE2 #E240BF #E2B440 #40E263
split-complementary
#406EE2 #E26340 #BFE240
monochromatic
#163992 #1E4EC7 #406EE2 #7596EA #AABFF2

Accessibility & contrast

On white

4.62
#406EE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#406EE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #406EE2
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406EE2#FFFFFF#000000##FFFFFF
##406EE21.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#227DE6
Deuteranopia (green-blind)
#006EE0
Tritanopia (blue-blind)
#008A9D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #406ee2;
/* rgb */ color: rgb(64, 110, 226);
/* oklch */ color: oklch(57.0% 0.184 264.8);
Tailwind
colors: {
  custom: {
    50: '#8997ec',
    500: '#406ee2',
    950: '#000000',
  },
}
SCSS
$custom: #406ee2;
$custom-light: #8997ec;
$custom-dark: #000000;
JSON
{
  "hex": "#406ee2",
  "rgb": {
    "r": 64,
    "g": 110,
    "b": 226
  },
  "hsl": {
    "h": 222.963,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.57008,
    "c": 0.18384,
    "h": 264.8
  },
  "luminance": 0.17733
}

Semantic roles & 50–950 ramp

primary
#406EE2
secondary
#E0CD9E
accent
#BC38F0
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #406EE2

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

Preview Lab → · Contrast checker → · Palette generator →

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