#406CC2#406CC2

#406CC2 is a mid, vivid blue. Relative luminance 0.157; OKLCH L 54.4% C 0.143 H 262.3°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#406CC2
RGBrgb(64, 108, 194)
HSLhsl(220, 52%, 51%)
HSVhsv(220, 67%, 76%)
CMYKcmyk(67%, 44.3%, 0%, 23.9%)
CIE-LABlab(46.59, 13.09, -49.56)
CIE-LCHlch(46.59, 51.26, 284.80°)
OKLaboklab(54.38% -0.0192 -0.1416)
OKLCHoklch(54.38% 0.143 262.3)
XYZxyz(17.2111, 15.7085, 53.1535)
Luminance0.1571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406CC2 #C29640
analogous
#40ADC2 #406CC2 #5540C2
triadic
#406CC2 #C2406C #6CC240
tetradic
#406CC2 #C240AD #C29640 #40C255
square
#406CC2 #C240AD #C29640 #40C255
split-complementary
#406CC2 #C25540 #ADC240
monochromatic
#213867 #305295 #406CC2 #6E90D1 #9DB3E0

Accessibility & contrast

On white

5.07
#406CC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#406CC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406CC2
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406CC2#FFFFFF#000000##FFFFFF
##406CC21.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4275C5
Deuteranopia (green-blind)
#2C69C0
Tritanopia (blue-blind)
#00808D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #406cc2;
/* rgb */ color: rgb(64, 108, 194);
/* oklch */ color: oklch(54.4% 0.143 262.3);
Tailwind
colors: {
  custom: {
    50: '#8395d5',
    500: '#406cc2',
    950: '#000000',
  },
}
SCSS
$custom: #406cc2;
$custom-light: #8395d5;
$custom-dark: #000000;
JSON
{
  "hex": "#406cc2",
  "rgb": {
    "r": 64,
    "g": 108,
    "b": 194
  },
  "hsl": {
    "h": 219.692,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.54385,
    "c": 0.14294,
    "h": 262.3
  },
  "luminance": 0.1571
}

Semantic roles & 50–950 ramp

primary
#406CC2
secondary
#CCB892
accent
#AB4DDB
background
#F8F9FD
surface
#F0F1FA
border
#CBCBD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #406CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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