#406AC2#406AC2

#406AC2 is a mid, vivid blue. Relative luminance 0.153; OKLCH L 54.0% C 0.145 H 263.2°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#406AC2
RGBrgb(64, 106, 194)
HSLhsl(221, 52%, 51%)
HSVhsv(221, 67%, 76%)
CMYKcmyk(67%, 45.4%, 0%, 23.9%)
CIE-LABlab(46.03, 14.35, -50.46)
CIE-LCHlch(46.03, 52.46, 285.88°)
OKLaboklab(53.96% -0.0172 -0.1443)
OKLCHoklch(53.96% 0.145 263.2)
XYZxyz(17.0026, 15.2914, 53.0840)
Luminance0.1529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406AC2 #C29840
analogous
#40ABC2 #406AC2 #5740C2
triadic
#406AC2 #C2406A #6AC240
tetradic
#406AC2 #C240AB #C29840 #40C257
square
#406AC2 #C240AB #C29840 #40C257
split-complementary
#406AC2 #C25740 #ABC240
monochromatic
#213767 #305095 #406AC2 #6E8ED1 #9DB2E0

Accessibility & contrast

On white

5.17
#406AC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#406AC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406AC2
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406AC2#FFFFFF#000000##FFFFFF
##406AC21.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F73C5
Deuteranopia (green-blind)
#2767C0
Tritanopia (blue-blind)
#007E8C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #406ac2;
/* rgb */ color: rgb(64, 106, 194);
/* oklch */ color: oklch(54.0% 0.145 263.2);
Tailwind
colors: {
  custom: {
    50: '#8394d5',
    500: '#406ac2',
    950: '#000000',
  },
}
SCSS
$custom: #406ac2;
$custom-light: #8394d5;
$custom-dark: #000000;
JSON
{
  "hex": "#406ac2",
  "rgb": {
    "r": 64,
    "g": 106,
    "b": 194
  },
  "hsl": {
    "h": 220.615,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.53956,
    "c": 0.14534,
    "h": 263.2
  },
  "luminance": 0.15293
}

Semantic roles & 50–950 ramp

primary
#406AC2
secondary
#CCB992
accent
#AD4DDB
background
#F8F9FD
surface
#F0F1FA
border
#CBCBD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #406AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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