#406FEB#406FEB

#406FEB is a mid, vivid blue. Relative luminance 0.185; OKLCH L 57.9% C 0.195 H 265.1°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#406FEB
RGBrgb(64, 111, 235)
HSLhsl(224, 81%, 59%)
HSVhsv(224, 73%, 92%)
CMYKcmyk(72.8%, 52.8%, 0%, 7.8%)
CIE-LABlab(50.04, 25.95, -67.31)
CIE-LCHlch(50.04, 72.14, 291.09°)
OKLaboklab(57.87% -0.0165 -0.1938)
OKLCHoklch(57.87% 0.195 265.1)
XYZxyz(22.7889, 18.4546, 80.9422)
Luminance0.1846 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406FEB #EBBC40
analogous
#40C4EB #406FEB #6640EB
triadic
#406FEB #EB406F #6FEB40
tetradic
#406FEB #EB40C4 #EBBC40 #40EB66
square
#406FEB #EB40C4 #EBBC40 #40EB66
split-complementary
#406FEB #EB6640 #C4EB40
monochromatic
#1138A0 #174CD7 #406FEB #7799F1 #AFC3F7

Accessibility & contrast

On white

4.48
#406FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#406FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #406FEB
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406FEB#FFFFFF#000000##000000
##406FEB1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0F7FEF
Deuteranopia (green-blind)
#0070E9
Tritanopia (blue-blind)
#008DA2
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #406feb;
/* rgb */ color: rgb(64, 111, 235);
/* oklch */ color: oklch(57.9% 0.195 265.1);
Tailwind
colors: {
  custom: {
    50: '#8a97f2',
    500: '#406feb',
    950: '#000000',
  },
}
SCSS
$custom: #406feb;
$custom-light: #8a97f2;
$custom-dark: #000000;
JSON
{
  "hex": "#406feb",
  "rgb": {
    "r": 64,
    "g": 111,
    "b": 235
  },
  "hsl": {
    "h": 223.509,
    "s": 81.043,
    "l": 58.627
  },
  "oklch": {
    "l": 0.57866,
    "c": 0.1945,
    "h": 265.1
  },
  "luminance": 0.18457
}

Semantic roles & 50–950 ramp

primary
#406FEB
secondary
#E5D3A2
accent
#C130F7
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0D0D17
muted
#7E7E85

Preview Lab

Preview with #406FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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