#406ACC#406ACC

#406ACC is a mid, vivid blue. Relative luminance 0.158; OKLCH L 54.6% C 0.159 H 264.3°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#406ACC
RGBrgb(64, 106, 204)
HSLhsl(222, 58%, 53%)
HSVhsv(222, 69%, 80%)
CMYKcmyk(68.6%, 48%, 0%, 20%)
CIE-LABlab(46.65, 17.94, -55.21)
CIE-LCHlch(46.65, 58.06, 288.00°)
OKLaboklab(54.63% -0.0157 -0.1583)
OKLCHoklch(54.63% 0.159 264.3)
XYZxyz(18.1636, 15.7559, 59.1990)
Luminance0.1576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406ACC #CCA240
analogous
#40B0CC #406ACC #5C40CC
triadic
#406ACC #CC406A #6ACC40
tetradic
#406ACC #CC40B0 #CCA240 #40CC5C
square
#406ACC #CC40B0 #CCA240 #40CC5C
split-complementary
#406ACC #CC5C40 #B0CC40
monochromatic
#1F3873 #2C4FA3 #406ACC #7090D9 #A1B5E6

Accessibility & contrast

On white

5.06
#406ACC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#406ACC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406ACC
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406ACC#FFFFFF#000000##FFFFFF
##406ACC1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3575D0
Deuteranopia (green-blind)
#1069CA
Tritanopia (blue-blind)
#008191
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #406acc;
/* rgb */ color: rgb(64, 106, 204);
/* oklch */ color: oklch(54.6% 0.159 264.3);
Tailwind
colors: {
  custom: {
    50: '#8594dc',
    500: '#406acc',
    950: '#000000',
  },
}
SCSS
$custom: #406acc;
$custom-light: #8594dc;
$custom-dark: #000000;
JSON
{
  "hex": "#406acc",
  "rgb": {
    "r": 64,
    "g": 106,
    "b": 204
  },
  "hsl": {
    "h": 222,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54632,
    "c": 0.15907,
    "h": 264.3
  },
  "luminance": 0.15758
}

Semantic roles & 50–950 ramp

primary
#406ACC
secondary
#D2C095
accent
#B347E1
background
#F8F9FD
surface
#F0F1FB
border
#CBCBD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #406ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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