#406CE7#406CE7

#406CE7 is a mid, vivid blue. Relative luminance 0.176; OKLCH L 57.0% C 0.193 H 265.7°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#406CE7
RGBrgb(64, 108, 231)
HSLhsl(224, 78%, 58%)
HSVhsv(224, 72%, 91%)
CMYKcmyk(72.3%, 53.2%, 0%, 9.4%)
CIE-LABlab(48.99, 26.40, -66.78)
CIE-LCHlch(48.99, 71.81, 291.57°)
OKLaboklab(56.98% -0.0145 -0.1923)
OKLCHoklch(56.98% 0.193 265.7)
XYZxyz(21.8957, 17.5823, 77.8256)
Luminance0.1759 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406CE7 #E7BB40
analogous
#40BFE7 #406CE7 #6840E7
triadic
#406CE7 #E7406C #6CE740
tetradic
#406CE7 #E740BF #E7BB40 #40E768
square
#406CE7 #E740BF #E7BB40 #40E768
split-complementary
#406CE7 #E76840 #BFE740
monochromatic
#133799 #1A4AD0 #406CE7 #7696EE #ADC0F5

Accessibility & contrast

On white

4.65
#406CE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#406CE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #406CE7
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406CE7#FFFFFF#000000##FFFFFF
##406CE71.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#067CEB
Deuteranopia (green-blind)
#006DE5
Tritanopia (blue-blind)
#008A9F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #406ce7;
/* rgb */ color: rgb(64, 108, 231);
/* oklch */ color: oklch(57.0% 0.193 265.7);
Tailwind
colors: {
  custom: {
    50: '#8a95ef',
    500: '#406ce7',
    950: '#000000',
  },
}
SCSS
$custom: #406ce7;
$custom-light: #8a95ef;
$custom-dark: #000000;
JSON
{
  "hex": "#406ce7",
  "rgb": {
    "r": 64,
    "g": 108,
    "b": 231
  },
  "hsl": {
    "h": 224.192,
    "s": 77.674,
    "l": 57.843
  },
  "oklch": {
    "l": 0.56978,
    "c": 0.19283,
    "h": 265.7
  },
  "luminance": 0.17585
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #406CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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