#406CD8#406CD8

#406CD8 is a mid, vivid blue. Relative luminance 0.168; OKLCH L 55.9% C 0.173 H 264.7°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#406CD8
RGBrgb(64, 108, 216)
HSLhsl(223, 66%, 55%)
HSVhsv(223, 70%, 85%)
CMYKcmyk(70.4%, 50%, 0%, 15.3%)
CIE-LABlab(47.97, 21.00, -59.94)
CIE-LCHlch(47.97, 63.51, 289.31°)
OKLaboklab(55.89% -0.016 -0.1722)
OKLCHoklch(55.89% 0.173 264.7)
XYZxyz(19.8672, 16.7709, 67.1425)
Luminance0.1677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406CD8 #D8AC40
analogous
#40B8D8 #406CD8 #6040D8
triadic
#406CD8 #D8406C #6CD840
tetradic
#406CD8 #D840B8 #D8AC40 #40D860
square
#406CD8 #D840B8 #D8AC40 #40D860
split-complementary
#406CD8 #D86040 #B8D840
monochromatic
#1B3983 #254FB6 #406CD8 #7393E2 #A6BAED

Accessibility & contrast

On white

4.82
#406CD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#406CD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406CD8
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406CD8#FFFFFF#000000##FFFFFF
##406CD81.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C79DC
Deuteranopia (green-blind)
#006BD6
Tritanopia (blue-blind)
#008698
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #406cd8;
/* rgb */ color: rgb(64, 108, 216);
/* oklch */ color: oklch(55.9% 0.173 264.7);
Tailwind
colors: {
  custom: {
    50: '#8795e5',
    500: '#406cd8',
    950: '#000000',
  },
}
SCSS
$custom: #406cd8;
$custom-light: #8795e5;
$custom-dark: #000000;
JSON
{
  "hex": "#406cd8",
  "rgb": {
    "r": 64,
    "g": 108,
    "b": 216
  },
  "hsl": {
    "h": 222.632,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.55885,
    "c": 0.17291,
    "h": 264.7
  },
  "luminance": 0.16773
}

Semantic roles & 50–950 ramp

primary
#406CD8
secondary
#DAC79A
accent
#B83FE9
background
#F9F9FE
surface
#F1F1FC
border
#CBCBD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #406CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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