#406BC2#406BC2

#406BC2 is a mid, vivid blue. Relative luminance 0.155; OKLCH L 54.2% C 0.144 H 262.7°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#406BC2
RGBrgb(64, 107, 194)
HSLhsl(220, 52%, 51%)
HSVhsv(220, 67%, 76%)
CMYKcmyk(67%, 44.8%, 0%, 23.9%)
CIE-LABlab(46.31, 13.72, -50.01)
CIE-LCHlch(46.31, 51.86, 285.34°)
OKLaboklab(54.17% -0.0182 -0.143)
OKLCHoklch(54.17% 0.144 262.7)
XYZxyz(17.1062, 15.4987, 53.1185)
Luminance0.1550 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406BC2 #C29740
analogous
#40ACC2 #406BC2 #5640C2
triadic
#406BC2 #C2406B #6BC240
tetradic
#406BC2 #C240AC #C29740 #40C256
square
#406BC2 #C240AC #C29740 #40C256
split-complementary
#406BC2 #C25640 #ACC240
monochromatic
#213867 #305195 #406BC2 #6E8FD1 #9DB3E0

Accessibility & contrast

On white

5.12
#406BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#406BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406BC2
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406BC2#FFFFFF#000000##FFFFFF
##406BC21.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4074C5
Deuteranopia (green-blind)
#2968C0
Tritanopia (blue-blind)
#007F8D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #406bc2;
/* rgb */ color: rgb(64, 107, 194);
/* oklch */ color: oklch(54.2% 0.144 262.7);
Tailwind
colors: {
  custom: {
    50: '#8394d5',
    500: '#406bc2',
    950: '#000000',
  },
}
SCSS
$custom: #406bc2;
$custom-light: #8394d5;
$custom-dark: #000000;
JSON
{
  "hex": "#406bc2",
  "rgb": {
    "r": 64,
    "g": 107,
    "b": 194
  },
  "hsl": {
    "h": 220.154,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.5417,
    "c": 0.14413,
    "h": 262.7
  },
  "luminance": 0.155
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #406BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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