#406BE7#406BE7

#406BE7 is a mid, vivid blue. Relative luminance 0.174; OKLCH L 56.8% C 0.194 H 265.9°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#406BE7
RGBrgb(64, 107, 231)
HSLhsl(225, 78%, 58%)
HSVhsv(225, 72%, 91%)
CMYKcmyk(72.3%, 53.7%, 0%, 9.4%)
CIE-LABlab(48.73, 27.03, -67.20)
CIE-LCHlch(48.73, 72.43, 291.91°)
OKLaboklab(56.78% -0.0138 -0.1935)
OKLCHoklch(56.78% 0.194 265.9)
XYZxyz(21.7908, 17.3726, 77.7906)
Luminance0.1737 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406BE7 #E7BC40
analogous
#40BEE7 #406BE7 #6940E7
triadic
#406BE7 #E7406B #6BE740
tetradic
#406BE7 #E740BE #E7BC40 #40E769
square
#406BE7 #E740BE #E7BC40 #40E769
split-complementary
#406BE7 #E76940 #BEE740
monochromatic
#133699 #1A49D0 #406BE7 #7695EE #ADBFF5

Accessibility & contrast

On white

4.69
#406BE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#406BE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406BE7
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406BE7#FFFFFF#000000##FFFFFF
##406BE71.004.694.474.69
#FFFFFF4.691.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#007CEB
Deuteranopia (green-blind)
#006CE5
Tritanopia (blue-blind)
#00899F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #406be7;
/* rgb */ color: rgb(64, 107, 231);
/* oklch */ color: oklch(56.8% 0.194 265.9);
Tailwind
colors: {
  custom: {
    50: '#8a94ef',
    500: '#406be7',
    950: '#000000',
  },
}
SCSS
$custom: #406be7;
$custom-light: #8a94ef;
$custom-dark: #000000;
JSON
{
  "hex": "#406be7",
  "rgb": {
    "r": 64,
    "g": 107,
    "b": 231
  },
  "hsl": {
    "h": 224.551,
    "s": 77.674,
    "l": 57.843
  },
  "oklch": {
    "l": 0.56782,
    "c": 0.19403,
    "h": 265.9
  },
  "luminance": 0.17375
}

Semantic roles & 50–950 ramp

primary
#406BE7
secondary
#E3D2A0
accent
#C334F4
background
#F9F9FE
surface
#F2F1FD
border
#CCCBD5
text
#0D0D17
muted
#7E7E85

Preview Lab

Preview with #406BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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