#406CC4#406CC4

#406CC4 is a mid, vivid blue. Relative luminance 0.158; OKLCH L 54.5% C 0.146 H 262.6°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#406CC4
RGBrgb(64, 108, 196)
HSLhsl(220, 53%, 51%)
HSVhsv(220, 67%, 77%)
CMYKcmyk(67.3%, 44.9%, 0%, 23.1%)
CIE-LABlab(46.71, 13.81, -50.53)
CIE-LCHlch(46.71, 52.38, 285.28°)
OKLaboklab(54.52% -0.0188 -0.1445)
OKLCHoklch(54.52% 0.146 262.6)
XYZxyz(17.4372, 15.7989, 54.3444)
Luminance0.1580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406CC4 #C49840
analogous
#40AEC4 #406CC4 #5640C4
triadic
#406CC4 #C4406C #6CC440
tetradic
#406CC4 #C440AE #C49840 #40C456
square
#406CC4 #C440AE #C49840 #40C456
split-complementary
#406CC4 #C45640 #AEC440
monochromatic
#203969 #2F5298 #406CC4 #6F90D2 #9EB4E1

Accessibility & contrast

On white

5.05
#406CC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#406CC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406CC4
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406CC4#FFFFFF#000000##FFFFFF
##406CC41.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4175C7
Deuteranopia (green-blind)
#2969C2
Tritanopia (blue-blind)
#00808E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #406cc4;
/* rgb */ color: rgb(64, 108, 196);
/* oklch */ color: oklch(54.5% 0.146 262.6);
Tailwind
colors: {
  custom: {
    50: '#8395d6',
    500: '#406cc4',
    950: '#000000',
  },
}
SCSS
$custom: #406cc4;
$custom-light: #8395d6;
$custom-dark: #000000;
JSON
{
  "hex": "#406cc4",
  "rgb": {
    "r": 64,
    "g": 108,
    "b": 196
  },
  "hsl": {
    "h": 220,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.54516,
    "c": 0.14569,
    "h": 262.6
  },
  "luminance": 0.15801
}

Semantic roles & 50–950 ramp

primary
#406CC4
secondary
#CDBA93
accent
#AC4CDC
background
#F8F9FD
surface
#F0F1FA
border
#CBCBD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #406CC4

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

Preview Lab → · Contrast checker → · Palette generator →

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