#406BB1#406BB1

#406BB1 is a mid, vivid blue. Relative luminance 0.148; OKLCH L 53.1% C 0.121 H 259.7°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#406BB1
RGBrgb(64, 107, 177)
HSLhsl(217, 47%, 47%)
HSVhsv(217, 64%, 69%)
CMYKcmyk(63.8%, 39.5%, 0%, 30.6%)
CIE-LABlab(45.33, 7.67, -41.71)
CIE-LCHlch(45.33, 42.41, 280.42°)
OKLaboklab(53.1% -0.0216 -0.1186)
OKLCHoklch(53.1% 0.121 259.7)
XYZxyz(15.3050, 14.7783, 43.6324)
Luminance0.1478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406BB1 #B18640
analogous
#40A4B1 #406BB1 #4D40B1
triadic
#406BB1 #B1406B #6BB140
tetradic
#406BB1 #B140A4 #B18640 #40B14D
square
#406BB1 #B140A4 #B18640 #40B14D
split-complementary
#406BB1 #B14D40 #A4B140
monochromatic
#1F3557 #305084 #406BB1 #668BC8 #93ADD8

Accessibility & contrast

On white

5.31
#406BB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#406BB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406BB1
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406BB1#FFFFFF#000000##FFFFFF
##406BB11.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C71B4
Deuteranopia (green-blind)
#3C66B0
Tritanopia (blue-blind)
#007B85
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #406bb1;
/* rgb */ color: rgb(64, 107, 177);
/* oklch */ color: oklch(53.1% 0.121 259.7);
Tailwind
colors: {
  custom: {
    50: '#8094c9',
    500: '#406bb1',
    950: '#000000',
  },
}
SCSS
$custom: #406bb1;
$custom-light: #8094c9;
$custom-dark: #000000;
JSON
{
  "hex": "#406bb1",
  "rgb": {
    "r": 64,
    "g": 107,
    "b": 177
  },
  "hsl": {
    "h": 217.168,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.53095,
    "c": 0.12056,
    "h": 259.7
  },
  "luminance": 0.1478
}

Semantic roles & 50–950 ramp

primary
#406BB1
secondary
#C3AD89
accent
#A451D7
background
#F8F9FC
surface
#EFF1F8
border
#CACBD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #406BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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