#406DD2#406DD2

#406DD2 is a mid, vivid blue. Relative luminance 0.167; OKLCH L 55.7% C 0.164 H 263.8°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#406DD2
RGBrgb(64, 109, 210)
HSLhsl(222, 62%, 54%)
HSVhsv(222, 70%, 82%)
CMYKcmyk(69.5%, 48.1%, 0%, 17.6%)
CIE-LABlab(47.85, 18.21, -56.71)
CIE-LCHlch(47.85, 59.57, 287.80°)
OKLaboklab(55.67% -0.0176 -0.1627)
OKLCHoklch(55.67% 0.164 263.8)
XYZxyz(19.2117, 16.6784, 63.1670)
Luminance0.1668 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406DD2 #D2A540
analogous
#40B6D2 #406DD2 #5C40D2
triadic
#406DD2 #D2406D #6DD240
tetradic
#406DD2 #D240B6 #D2A540 #40D25C
square
#406DD2 #D240B6 #D2A540 #40D25C
split-complementary
#406DD2 #D25C40 #B6D240
monochromatic
#1D3A7B #2951AC #406DD2 #7293DE #A3B9E9

Accessibility & contrast

On white

4.84
#406DD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#406DD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406DD2
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406DD2#FFFFFF#000000##FFFFFF
##406DD21.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3679D6
Deuteranopia (green-blind)
#0C6BD0
Tritanopia (blue-blind)
#008595
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #406dd2;
/* rgb */ color: rgb(64, 109, 210);
/* oklch */ color: oklch(55.7% 0.164 263.8);
Tailwind
colors: {
  custom: {
    50: '#8696e0',
    500: '#406dd2',
    950: '#000000',
  },
}
SCSS
$custom: #406dd2;
$custom-light: #8696e0;
$custom-dark: #000000;
JSON
{
  "hex": "#406dd2",
  "rgb": {
    "r": 64,
    "g": 109,
    "b": 210
  },
  "hsl": {
    "h": 221.507,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.55671,
    "c": 0.16361,
    "h": 263.8
  },
  "luminance": 0.1668
}

Semantic roles & 50–950 ramp

primary
#406DD2
secondary
#D6C398
accent
#B343E5
background
#F8F9FD
surface
#F0F1FB
border
#CBCBD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #406DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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