#406CE1#406CE1

#406CE1 is a mid, vivid blue. Relative luminance 0.173; OKLCH L 56.5% C 0.185 H 265.3°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#406CE1
RGBrgb(64, 108, 225)
HSLhsl(224, 73%, 57%)
HSVhsv(224, 72%, 88%)
CMYKcmyk(71.6%, 52%, 0%, 11.8%)
CIE-LABlab(48.57, 24.24, -64.06)
CIE-LCHlch(48.57, 68.50, 290.73°)
OKLaboklab(56.54% -0.015 -0.1843)
OKLCHoklch(56.54% 0.185 265.3)
XYZxyz(21.0627, 17.2491, 73.4389)
Luminance0.1725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406CE1 #E1B540
analogous
#40BDE1 #406CE1 #6440E1
triadic
#406CE1 #E1406C #6CE140
tetradic
#406CE1 #E140BD #E1B540 #40E164
square
#406CE1 #E140BD #E1B540 #40E164
split-complementary
#406CE1 #E16440 #BDE140
monochromatic
#173890 #1F4CC5 #406CE1 #7595E9 #AABDF2

Accessibility & contrast

On white

4.72
#406CE1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#406CE1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406CE1
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406CE1#FFFFFF#000000##FFFFFF
##406CE11.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C7BE5
Deuteranopia (green-blind)
#006CDF
Tritanopia (blue-blind)
#00889C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #406ce1;
/* rgb */ color: rgb(64, 108, 225);
/* oklch */ color: oklch(56.5% 0.185 265.3);
Tailwind
colors: {
  custom: {
    50: '#8995eb',
    500: '#406ce1',
    950: '#000000',
  },
}
SCSS
$custom: #406ce1;
$custom-light: #8995eb;
$custom-dark: #000000;
JSON
{
  "hex": "#406ce1",
  "rgb": {
    "r": 64,
    "g": 108,
    "b": 225
  },
  "hsl": {
    "h": 223.602,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.56535,
    "c": 0.18491,
    "h": 265.3
  },
  "luminance": 0.17251
}

Semantic roles & 50–950 ramp

primary
#406CE1
secondary
#DFCD9D
accent
#BD38F0
background
#F9F9FE
surface
#F1F1FD
border
#CBCBD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #406CE1

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

Preview Lab → · Contrast checker → · Palette generator →

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