#406DE2#406DE2

#406DE2 is a mid, vivid blue. Relative luminance 0.175; OKLCH L 56.8% C 0.185 H 265.1°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#406DE2
RGBrgb(64, 109, 226)
HSLhsl(223, 74%, 57%)
HSVhsv(223, 72%, 89%)
CMYKcmyk(71.7%, 51.8%, 0%, 11.4%)
CIE-LABlab(48.90, 23.97, -64.09)
CIE-LCHlch(48.90, 68.43, 290.51°)
OKLaboklab(56.81% -0.0157 -0.1844)
OKLCHoklch(56.81% 0.185 265.1)
XYZxyz(21.3056, 17.5160, 74.1948)
Luminance0.1752 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406DE2 #E2B540
analogous
#40BEE2 #406DE2 #6440E2
triadic
#406DE2 #E2406D #6DE240
tetradic
#406DE2 #E240BE #E2B540 #40E264
square
#406DE2 #E240BE #E2B540 #40E264
split-complementary
#406DE2 #E26440 #BEE240
monochromatic
#163892 #1E4DC7 #406DE2 #7596EA #AABEF2

Accessibility & contrast

On white

4.66
#406DE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#406DE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #406DE2
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406DE2#FFFFFF#000000##FFFFFF
##406DE21.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E7CE6
Deuteranopia (green-blind)
#006DE0
Tritanopia (blue-blind)
#00899D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #406de2;
/* rgb */ color: rgb(64, 109, 226);
/* oklch */ color: oklch(56.8% 0.185 265.1);
Tailwind
colors: {
  custom: {
    50: '#8996ec',
    500: '#406de2',
    950: '#000000',
  },
}
SCSS
$custom: #406de2;
$custom-light: #8996ec;
$custom-dark: #000000;
JSON
{
  "hex": "#406de2",
  "rgb": {
    "r": 64,
    "g": 109,
    "b": 226
  },
  "hsl": {
    "h": 223.333,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.56808,
    "c": 0.18504,
    "h": 265.1
  },
  "luminance": 0.17518
}

Semantic roles & 50–950 ramp

primary
#406DE2
secondary
#E0CE9E
accent
#BD38F0
background
#F9F9FE
surface
#F1F1FD
border
#CBCBD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #406DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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