#406DB2#406DB2

#406DB2 is a mid, moderate blue. Relative luminance 0.152; OKLCH L 53.6% C 0.120 H 258.7°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#406DB2
RGBrgb(64, 109, 178)
HSLhsl(216, 47%, 47%)
HSVhsv(216, 64%, 70%)
CMYKcmyk(64%, 38.8%, 0%, 30.2%)
CIE-LABlab(45.96, 6.78, -41.29)
CIE-LCHlch(45.96, 41.84, 279.32°)
OKLaboklab(53.6% -0.0235 -0.1174)
OKLCHoklch(53.6% 0.12 258.7)
XYZxyz(15.6160, 15.2401, 44.2295)
Luminance0.1524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406DB2 #B28540
analogous
#40A6B2 #406DB2 #4C40B2
triadic
#406DB2 #B2406D #6DB240
tetradic
#406DB2 #B240A6 #B28540 #40B24C
square
#406DB2 #B240A6 #B28540 #40B24C
split-complementary
#406DB2 #B24C40 #A6B240
monochromatic
#203658 #305185 #406DB2 #678DC8 #94AFD8

Accessibility & contrast

On white

5.19
#406DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#406DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406DB2
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406DB2#FFFFFF#000000##FFFFFF
##406DB21.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F73B5
Deuteranopia (green-blind)
#3F68B1
Tritanopia (blue-blind)
#007D87
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #406db2;
/* rgb */ color: rgb(64, 109, 178);
/* oklch */ color: oklch(53.6% 0.120 258.7);
Tailwind
colors: {
  custom: {
    50: '#8096c9',
    500: '#406db2',
    950: '#000000',
  },
}
SCSS
$custom: #406db2;
$custom-light: #8096c9;
$custom-dark: #000000;
JSON
{
  "hex": "#406db2",
  "rgb": {
    "r": 64,
    "g": 109,
    "b": 178
  },
  "hsl": {
    "h": 216.316,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.53603,
    "c": 0.11968,
    "h": 258.7
  },
  "luminance": 0.15242
}

Semantic roles & 50–950 ramp

primary
#406DB2
secondary
#C4AD8A
accent
#A251D7
background
#F8F9FC
surface
#EFF1F8
border
#CACBD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #406DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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