#406EB2#406EB2

#406EB2 is a mid, moderate blue. Relative luminance 0.155; OKLCH L 53.8% C 0.119 H 258.1°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#406EB2
RGBrgb(64, 110, 178)
HSLhsl(216, 47%, 47%)
HSVhsv(216, 64%, 70%)
CMYKcmyk(64%, 38.2%, 0%, 30.2%)
CIE-LABlab(46.25, 6.15, -40.83)
CIE-LCHlch(46.25, 41.29, 278.57°)
OKLaboklab(53.83% -0.0245 -0.116)
OKLCHoklch(53.83% 0.119 258.1)
XYZxyz(15.7233, 15.4547, 44.2653)
Luminance0.1546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406EB2 #B28440
analogous
#40A7B2 #406EB2 #4B40B2
triadic
#406EB2 #B2406E #6EB240
tetradic
#406EB2 #B240A7 #B28440 #40B24B
square
#406EB2 #B240A7 #B28440 #40B24B
split-complementary
#406EB2 #B24B40 #A7B240
monochromatic
#203658 #305285 #406EB2 #678EC8 #94B0D8

Accessibility & contrast

On white

5.13
#406EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#406EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406EB2
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406EB2#FFFFFF#000000##FFFFFF
##406EB21.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5073B5
Deuteranopia (green-blind)
#4069B1
Tritanopia (blue-blind)
#007D87
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #406eb2;
/* rgb */ color: rgb(64, 110, 178);
/* oklch */ color: oklch(53.8% 0.119 258.1);
Tailwind
colors: {
  custom: {
    50: '#8097c9',
    500: '#406eb2',
    950: '#000000',
  },
}
SCSS
$custom: #406eb2;
$custom-light: #8097c9;
$custom-dark: #000000;
JSON
{
  "hex": "#406eb2",
  "rgb": {
    "r": 64,
    "g": 110,
    "b": 178
  },
  "hsl": {
    "h": 215.789,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.53828,
    "c": 0.11856,
    "h": 258.1
  },
  "luminance": 0.15456
}

Semantic roles & 50–950 ramp

primary
#406EB2
secondary
#C4AD8A
accent
#A151D7
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #406EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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