#406AB2#406AB2

#406AB2 is a mid, vivid blue. Relative luminance 0.146; OKLCH L 52.9% C 0.123 H 260.5°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#406AB2
RGBrgb(64, 106, 178)
HSLhsl(218, 47%, 47%)
HSVhsv(218, 64%, 70%)
CMYKcmyk(64%, 40.4%, 0%, 30.2%)
CIE-LABlab(45.10, 8.65, -42.66)
CIE-LCHlch(45.10, 43.53, 281.46°)
OKLaboklab(52.93% -0.0203 -0.1214)
OKLCHoklch(52.93% 0.123 260.5)
XYZxyz(15.3014, 14.6110, 44.1247)
Luminance0.1461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406AB2 #B28840
analogous
#40A3B2 #406AB2 #4F40B2
triadic
#406AB2 #B2406A #6AB240
tetradic
#406AB2 #B240A3 #B28840 #40B24F
square
#406AB2 #B240A3 #B28840 #40B24F
split-complementary
#406AB2 #B24F40 #A3B240
monochromatic
#203458 #304F85 #406AB2 #678BC8 #94ADD8

Accessibility & contrast

On white

5.35
#406AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#406AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406AB2
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406AB2#FFFFFF#000000##FFFFFF
##406AB21.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A70B5
Deuteranopia (green-blind)
#3966B1
Tritanopia (blue-blind)
#007A85
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #406ab2;
/* rgb */ color: rgb(64, 106, 178);
/* oklch */ color: oklch(52.9% 0.123 260.5);
Tailwind
colors: {
  custom: {
    50: '#8094c9',
    500: '#406ab2',
    950: '#000000',
  },
}
SCSS
$custom: #406ab2;
$custom-light: #8094c9;
$custom-dark: #000000;
JSON
{
  "hex": "#406ab2",
  "rgb": {
    "r": 64,
    "g": 106,
    "b": 178
  },
  "hsl": {
    "h": 217.895,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.52933,
    "c": 0.12311,
    "h": 260.5
  },
  "luminance": 0.14612
}

Semantic roles & 50–950 ramp

primary
#406AB2
secondary
#C4AF8A
accent
#A551D7
background
#F8F9FC
surface
#EFF1F8
border
#CACBD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #406AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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