#406FE7#406FE7

#406FE7 is a mid, vivid blue. Relative luminance 0.182; OKLCH L 57.6% C 0.189 H 264.9°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#406FE7
RGBrgb(64, 111, 231)
HSLhsl(223, 78%, 58%)
HSVhsv(223, 72%, 91%)
CMYKcmyk(72.3%, 51.9%, 0%, 9.4%)
CIE-LABlab(49.77, 24.52, -65.51)
CIE-LCHlch(49.77, 69.94, 290.52°)
OKLaboklab(57.57% -0.0168 -0.1885)
OKLCHoklch(57.57% 0.189 264.9)
XYZxyz(22.2175, 18.2260, 77.9329)
Luminance0.1823 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406FE7 #E7B840
analogous
#40C2E7 #406FE7 #6540E7
triadic
#406FE7 #E7406F #6FE740
tetradic
#406FE7 #E740C2 #E7B840 #40E765
square
#406FE7 #E740C2 #E7B840 #40E765
split-complementary
#406FE7 #E76540 #C2E740
monochromatic
#133999 #1A4DD0 #406FE7 #7698EE #ADC1F5

Accessibility & contrast

On white

4.52
#406FE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#406FE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #406FE7
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406FE7#FFFFFF#000000##000000
##406FE71.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C7EEB
Deuteranopia (green-blind)
#006FE5
Tritanopia (blue-blind)
#008CA0
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #406fe7;
/* rgb */ color: rgb(64, 111, 231);
/* oklch */ color: oklch(57.6% 0.189 264.9);
Tailwind
colors: {
  custom: {
    50: '#8a97ef',
    500: '#406fe7',
    950: '#000000',
  },
}
SCSS
$custom: #406fe7;
$custom-light: #8a97ef;
$custom-dark: #000000;
JSON
{
  "hex": "#406fe7",
  "rgb": {
    "r": 64,
    "g": 111,
    "b": 231
  },
  "hsl": {
    "h": 223.114,
    "s": 77.674,
    "l": 57.843
  },
  "oklch": {
    "l": 0.57572,
    "c": 0.18925,
    "h": 264.9
  },
  "luminance": 0.18228
}

Semantic roles & 50–950 ramp

primary
#406FE7
secondary
#E3D0A0
accent
#BE34F4
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0D0D17
muted
#7E7E85

Preview Lab

Preview with #406FE7

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

Preview Lab → · Contrast checker → · Palette generator →

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