#406BD4#406BD4

#406BD4 is a mid, vivid blue. Relative luminance 0.164; OKLCH L 55.4% C 0.169 H 264.7°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#406BD4
RGBrgb(64, 107, 212)
HSLhsl(223, 63%, 54%)
HSVhsv(223, 70%, 83%)
CMYKcmyk(69.8%, 49.5%, 0%, 16.9%)
CIE-LABlab(47.44, 20.19, -58.52)
CIE-LCHlch(47.44, 61.91, 289.04°)
OKLaboklab(55.4% -0.0156 -0.168)
OKLCHoklch(55.4% 0.169 264.7)
XYZxyz(19.2515, 16.3569, 64.4172)
Luminance0.1636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406BD4 #D4A940
analogous
#40B5D4 #406BD4 #5F40D4
triadic
#406BD4 #D4406B #6BD440
tetradic
#406BD4 #D440B5 #D4A940 #40D45F
square
#406BD4 #D440B5 #D4A940 #40D45F
split-complementary
#406BD4 #D45F40 #B5D440
monochromatic
#1C387D #274FAF #406BD4 #7292DF #A4B8EA

Accessibility & contrast

On white

4.92
#406BD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#406BD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406BD4
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406BD4#FFFFFF#000000##FFFFFF
##406BD41.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E78D8
Deuteranopia (green-blind)
#006AD2
Tritanopia (blue-blind)
#008495
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #406bd4;
/* rgb */ color: rgb(64, 107, 212);
/* oklch */ color: oklch(55.4% 0.169 264.7);
Tailwind
colors: {
  custom: {
    50: '#8694e2',
    500: '#406bd4',
    950: '#000000',
  },
}
SCSS
$custom: #406bd4;
$custom-light: #8694e2;
$custom-dark: #000000;
JSON
{
  "hex": "#406bd4",
  "rgb": {
    "r": 64,
    "g": 107,
    "b": 212
  },
  "hsl": {
    "h": 222.568,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.55397,
    "c": 0.16872,
    "h": 264.7
  },
  "luminance": 0.16359
}

Semantic roles & 50–950 ramp

primary
#406BD4
secondary
#D7C598
accent
#B642E6
background
#F8F9FD
surface
#F0F1FB
border
#CBCBD4
text
#0D0D15
muted
#7D7E83

Preview Lab

Preview with #406BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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