#406CB1#406CB1

#406CB1 is a mid, moderate blue. Relative luminance 0.150; OKLCH L 53.3% C 0.119 H 259.1°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#406CB1
RGBrgb(64, 108, 177)
HSLhsl(217, 47%, 47%)
HSVhsv(217, 64%, 69%)
CMYKcmyk(63.8%, 39%, 0%, 30.6%)
CIE-LABlab(45.62, 7.05, -41.25)
CIE-LCHlch(45.62, 41.85, 279.69°)
OKLaboklab(53.32% -0.0226 -0.1173)
OKLCHoklch(53.32% 0.119 259.1)
XYZxyz(15.4099, 14.9880, 43.6673)
Luminance0.1499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406CB1 #B18540
analogous
#40A5B1 #406CB1 #4C40B1
triadic
#406CB1 #B1406C #6CB140
tetradic
#406CB1 #B140A5 #B18540 #40B14C
square
#406CB1 #B140A5 #B18540 #40B14C
split-complementary
#406CB1 #B14C40 #A5B140
monochromatic
#1F3557 #305184 #406CB1 #668CC8 #93AED8

Accessibility & contrast

On white

5.25
#406CB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#406CB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406CB1
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406CB1#FFFFFF#000000##FFFFFF
##406CB11.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E72B4
Deuteranopia (green-blind)
#3E67B0
Tritanopia (blue-blind)
#007C86
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #406cb1;
/* rgb */ color: rgb(64, 108, 177);
/* oklch */ color: oklch(53.3% 0.119 259.1);
Tailwind
colors: {
  custom: {
    50: '#8095c9',
    500: '#406cb1',
    950: '#000000',
  },
}
SCSS
$custom: #406cb1;
$custom-light: #8095c9;
$custom-dark: #000000;
JSON
{
  "hex": "#406cb1",
  "rgb": {
    "r": 64,
    "g": 108,
    "b": 177
  },
  "hsl": {
    "h": 216.637,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.53319,
    "c": 0.11943,
    "h": 259.1
  },
  "luminance": 0.14989
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #406CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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