#406DC2#406DC2

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

Color values

HEX#406DC2
RGBrgb(64, 109, 194)
HSLhsl(219, 52%, 51%)
HSVhsv(219, 67%, 76%)
CMYKcmyk(67%, 43.8%, 0%, 23.9%)
CIE-LABlab(46.87, 12.46, -49.12)
CIE-LCHlch(46.87, 50.67, 284.24°)
OKLaboklab(54.6% -0.0201 -0.1403)
OKLCHoklch(54.6% 0.142 261.8)
XYZxyz(17.3171, 15.9206, 53.1888)
Luminance0.1592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406DC2 #C29540
analogous
#40AEC2 #406DC2 #5440C2
triadic
#406DC2 #C2406D #6DC240
tetradic
#406DC2 #C240AE #C29540 #40C254
square
#406DC2 #C240AE #C29540 #40C254
split-complementary
#406DC2 #C25440 #AEC240
monochromatic
#213967 #305395 #406DC2 #6E90D1 #9DB4E0

Accessibility & contrast

On white

5.02
#406DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#406DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406DC2
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406DC2#FFFFFF#000000##FFFFFF
##406DC21.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4476C5
Deuteranopia (green-blind)
#2E6AC0
Tritanopia (blue-blind)
#00818E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #406dc2;
/* rgb */ color: rgb(64, 109, 194);
/* oklch */ color: oklch(54.6% 0.142 261.8);
Tailwind
colors: {
  custom: {
    50: '#8396d5',
    500: '#406dc2',
    950: '#000000',
  },
}
SCSS
$custom: #406dc2;
$custom-light: #8396d5;
$custom-dark: #000000;
JSON
{
  "hex": "#406dc2",
  "rgb": {
    "r": 64,
    "g": 109,
    "b": 194
  },
  "hsl": {
    "h": 219.231,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.54601,
    "c": 0.14176,
    "h": 261.8
  },
  "luminance": 0.15922
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #406DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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