#406FE1#406FE1

#406FE1 is a mid, vivid blue. Relative luminance 0.179; OKLCH L 57.1% C 0.181 H 264.5°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#406FE1
RGBrgb(64, 111, 225)
HSLhsl(222, 73%, 57%)
HSVhsv(222, 72%, 88%)
CMYKcmyk(71.6%, 50.7%, 0%, 11.8%)
CIE-LABlab(49.37, 22.36, -62.78)
CIE-LCHlch(49.37, 66.64, 289.60°)
OKLaboklab(57.14% -0.0174 -0.1805)
OKLCHoklch(57.14% 0.181 264.5)
XYZxyz(21.3846, 17.8928, 73.5462)
Luminance0.1789 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406FE1 #E1B240
analogous
#40C0E1 #406FE1 #6140E1
triadic
#406FE1 #E1406F #6FE140
tetradic
#406FE1 #E140C0 #E1B240 #40E161
square
#406FE1 #E140C0 #E1B240 #40E161
split-complementary
#406FE1 #E16140 #C0E140
monochromatic
#173A90 #1F4FC5 #406FE1 #7597E9 #AABFF2

Accessibility & contrast

On white

4.59
#406FE1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#406FE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #406FE1
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406FE1#FFFFFF#000000##FFFFFF
##406FE11.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#287DE5
Deuteranopia (green-blind)
#006EDF
Tritanopia (blue-blind)
#008A9D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #406fe1;
/* rgb */ color: rgb(64, 111, 225);
/* oklch */ color: oklch(57.1% 0.181 264.5);
Tailwind
colors: {
  custom: {
    50: '#8897eb',
    500: '#406fe1',
    950: '#000000',
  },
}
SCSS
$custom: #406fe1;
$custom-light: #8897eb;
$custom-dark: #000000;
JSON
{
  "hex": "#406fe1",
  "rgb": {
    "r": 64,
    "g": 111,
    "b": 225
  },
  "hsl": {
    "h": 222.484,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.57137,
    "c": 0.18132,
    "h": 264.5
  },
  "luminance": 0.17895
}

Semantic roles & 50–950 ramp

primary
#406FE1
secondary
#DFCC9D
accent
#BA38F0
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #406FE1

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

Preview Lab → · Contrast checker → · Palette generator →

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