#406DB1#406DB1

#406DB1 is a mid, moderate blue. Relative luminance 0.152; OKLCH L 53.5% C 0.118 H 258.4°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#406DB1
RGBrgb(64, 109, 177)
HSLhsl(216, 47%, 47%)
HSVhsv(216, 64%, 69%)
CMYKcmyk(63.8%, 38.4%, 0%, 30.6%)
CIE-LABlab(45.91, 6.42, -40.79)
CIE-LCHlch(45.91, 41.30, 278.95°)
OKLaboklab(53.54% -0.0237 -0.1159)
OKLCHoklch(53.54% 0.118 258.4)
XYZxyz(15.5160, 15.2001, 43.7027)
Luminance0.1520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406DB1 #B18440
analogous
#40A6B1 #406DB1 #4B40B1
triadic
#406DB1 #B1406D #6DB140
tetradic
#406DB1 #B140A6 #B18440 #40B14B
square
#406DB1 #B140A6 #B18440 #40B14B
split-complementary
#406DB1 #B14B40 #A6B140
monochromatic
#1F3657 #305184 #406DB1 #668DC8 #93AFD8

Accessibility & contrast

On white

5.20
#406DB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#406DB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406DB1
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406DB1#FFFFFF#000000##FFFFFF
##406DB11.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F72B4
Deuteranopia (green-blind)
#3F68B0
Tritanopia (blue-blind)
#007C86
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #406db1;
/* rgb */ color: rgb(64, 109, 177);
/* oklch */ color: oklch(53.5% 0.118 258.4);
Tailwind
colors: {
  custom: {
    50: '#8096c8',
    500: '#406db1',
    950: '#000000',
  },
}
SCSS
$custom: #406db1;
$custom-light: #8096c8;
$custom-dark: #000000;
JSON
{
  "hex": "#406db1",
  "rgb": {
    "r": 64,
    "g": 109,
    "b": 177
  },
  "hsl": {
    "h": 216.106,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.53543,
    "c": 0.1183,
    "h": 258.4
  },
  "luminance": 0.15202
}

Semantic roles & 50–950 ramp

primary
#406DB1
secondary
#C3AC89
accent
#A151D7
background
#F8F9FC
surface
#EFF1F8
border
#CACBD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #406DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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