#406BE2#406BE2

#406BE2 is a mid, vivid blue. Relative luminance 0.171; OKLCH L 56.4% C 0.187 H 265.7°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#406BE2
RGBrgb(64, 107, 226)
HSLhsl(224, 74%, 57%)
HSVhsv(224, 72%, 89%)
CMYKcmyk(71.7%, 52.7%, 0%, 11.4%)
CIE-LABlab(48.38, 25.23, -64.94)
CIE-LCHlch(48.38, 69.67, 291.23°)
OKLaboklab(56.41% -0.0141 -0.1869)
OKLCHoklch(56.41% 0.187 265.7)
XYZxyz(21.0947, 17.0941, 74.1245)
Luminance0.1710 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406BE2 #E2B740
analogous
#40BCE2 #406BE2 #6640E2
triadic
#406BE2 #E2406B #6BE240
tetradic
#406BE2 #E240BC #E2B740 #40E266
square
#406BE2 #E240BC #E2B740 #40E266
split-complementary
#406BE2 #E26640 #BCE240
monochromatic
#163792 #1E4BC7 #406BE2 #7594EA #AABDF2

Accessibility & contrast

On white

4.75
#406BE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#406BE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406BE2
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406BE2#FFFFFF#000000##FFFFFF
##406BE21.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#147BE6
Deuteranopia (green-blind)
#006CE0
Tritanopia (blue-blind)
#00889C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #406be2;
/* rgb */ color: rgb(64, 107, 226);
/* oklch */ color: oklch(56.4% 0.187 265.7);
Tailwind
colors: {
  custom: {
    50: '#8994ec',
    500: '#406be2',
    950: '#000000',
  },
}
SCSS
$custom: #406be2;
$custom-light: #8994ec;
$custom-dark: #000000;
JSON
{
  "hex": "#406be2",
  "rgb": {
    "r": 64,
    "g": 107,
    "b": 226
  },
  "hsl": {
    "h": 224.074,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.5641,
    "c": 0.18743,
    "h": 265.7
  },
  "luminance": 0.17096
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #406BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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