#406CE2#406CE2

#406CE2 is a mid, vivid blue. Relative luminance 0.173; OKLCH L 56.6% C 0.186 H 265.4°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#406CE2
RGBrgb(64, 108, 226)
HSLhsl(224, 74%, 57%)
HSVhsv(224, 72%, 89%)
CMYKcmyk(71.7%, 52.2%, 0%, 11.4%)
CIE-LABlab(48.64, 24.60, -64.52)
CIE-LCHlch(48.64, 69.05, 290.87°)
OKLaboklab(56.61% -0.0149 -0.1856)
OKLCHoklch(56.61% 0.186 265.4)
XYZxyz(21.1996, 17.3039, 74.1595)
Luminance0.1731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406CE2 #E2B640
analogous
#40BDE2 #406CE2 #6540E2
triadic
#406CE2 #E2406C #6CE240
tetradic
#406CE2 #E240BD #E2B640 #40E265
square
#406CE2 #E240BD #E2B640 #40E265
split-complementary
#406CE2 #E26540 #BDE240
monochromatic
#163892 #1E4CC7 #406CE2 #7595EA #AABEF2

Accessibility & contrast

On white

4.71
#406CE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#406CE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406CE2
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406CE2#FFFFFF#000000##FFFFFF
##406CE21.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#197BE6
Deuteranopia (green-blind)
#006CE0
Tritanopia (blue-blind)
#00889D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #406ce2;
/* rgb */ color: rgb(64, 108, 226);
/* oklch */ color: oklch(56.6% 0.186 265.4);
Tailwind
colors: {
  custom: {
    50: '#8995ec',
    500: '#406ce2',
    950: '#000000',
  },
}
SCSS
$custom: #406ce2;
$custom-light: #8995ec;
$custom-dark: #000000;
JSON
{
  "hex": "#406ce2",
  "rgb": {
    "r": 64,
    "g": 108,
    "b": 226
  },
  "hsl": {
    "h": 223.704,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.56608,
    "c": 0.18624,
    "h": 265.4
  },
  "luminance": 0.17306
}

Semantic roles & 50–950 ramp

primary
#406CE2
secondary
#E0CE9E
accent
#BE38F0
background
#F9F9FE
surface
#F1F1FD
border
#CBCBD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #406CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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