#406DE7#406DE7

#406DE7 is a mid, vivid blue. Relative luminance 0.178; OKLCH L 57.2% C 0.192 H 265.4°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#406DE7
RGBrgb(64, 109, 231)
HSLhsl(224, 78%, 58%)
HSVhsv(224, 72%, 91%)
CMYKcmyk(72.3%, 52.8%, 0%, 9.4%)
CIE-LABlab(49.25, 25.77, -66.35)
CIE-LCHlch(49.25, 71.18, 291.23°)
OKLaboklab(57.18% -0.0153 -0.191)
OKLCHoklch(57.18% 0.192 265.4)
XYZxyz(22.0017, 17.7944, 77.8609)
Luminance0.1780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406DE7 #E7BA40
analogous
#40C1E7 #406DE7 #6640E7
triadic
#406DE7 #E7406D #6DE740
tetradic
#406DE7 #E740C1 #E7BA40 #40E766
square
#406DE7 #E740C1 #E7BA40 #40E766
split-complementary
#406DE7 #E76640 #C1E740
monochromatic
#133799 #1A4BD0 #406DE7 #7697EE #ADC0F5

Accessibility & contrast

On white

4.61
#406DE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#406DE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #406DE7
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406DE7#FFFFFF#000000##FFFFFF
##406DE71.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#107DEB
Deuteranopia (green-blind)
#006EE5
Tritanopia (blue-blind)
#008B9F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #406de7;
/* rgb */ color: rgb(64, 109, 231);
/* oklch */ color: oklch(57.2% 0.192 265.4);
Tailwind
colors: {
  custom: {
    50: '#8a96ef',
    500: '#406de7',
    950: '#000000',
  },
}
SCSS
$custom: #406de7;
$custom-light: #8a96ef;
$custom-dark: #000000;
JSON
{
  "hex": "#406de7",
  "rgb": {
    "r": 64,
    "g": 109,
    "b": 231
  },
  "hsl": {
    "h": 223.832,
    "s": 77.674,
    "l": 57.843
  },
  "oklch": {
    "l": 0.57175,
    "c": 0.19164,
    "h": 265.4
  },
  "luminance": 0.17797
}

Semantic roles & 50–950 ramp

primary
#406DE7
secondary
#E3D1A0
accent
#C034F4
background
#F9F9FE
surface
#F2F1FD
border
#CCCBD5
text
#0D0D17
muted
#7E7E85

Preview Lab

Preview with #406DE7

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

Preview Lab → · Contrast checker → · Palette generator →

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