#406BB7#406BB7

#406BB7 is a mid, vivid blue. Relative luminance 0.150; OKLCH L 53.5% C 0.129 H 260.9°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#406BB7
RGBrgb(64, 107, 183)
HSLhsl(218, 48%, 48%)
HSVhsv(218, 65%, 72%)
CMYKcmyk(65%, 41.5%, 0%, 28.2%)
CIE-LABlab(45.67, 9.80, -44.67)
CIE-LCHlch(45.67, 45.73, 282.37°)
OKLaboklab(53.46% -0.0203 -0.1273)
OKLCHoklch(53.46% 0.129 260.9)
XYZxyz(15.9163, 15.0228, 46.8515)
Luminance0.1502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406BB7 #B78C40
analogous
#40A6B7 #406BB7 #5040B7
triadic
#406BB7 #B7406B #6BB740
tetradic
#406BB7 #B740A6 #B78C40 #40B750
square
#406BB7 #B740A6 #B78C40 #40B750
split-complementary
#406BB7 #B75040 #A6B740
monochromatic
#20365C #30508A #406BB7 #698DCB #97AFDB

Accessibility & contrast

On white

5.24
#406BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #406BB7
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406BB7#FFFFFF#000000##FFFFFF
##406BB71.005.244.005.24
#FFFFFF5.241.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4872BA
Deuteranopia (green-blind)
#3667B5
Tritanopia (blue-blind)
#007C88
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #406bb7;
/* rgb */ color: rgb(64, 107, 183);
/* oklch */ color: oklch(53.5% 0.129 260.9);
Tailwind
colors: {
  custom: {
    50: '#8194cd',
    500: '#406bb7',
    950: '#000000',
  },
}
SCSS
$custom: #406bb7;
$custom-light: #8194cd;
$custom-dark: #000000;
JSON
{
  "hex": "#406bb7",
  "rgb": {
    "r": 64,
    "g": 107,
    "b": 183
  },
  "hsl": {
    "h": 218.319,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.53464,
    "c": 0.1289,
    "h": 260.9
  },
  "luminance": 0.15024
}

Semantic roles & 50–950 ramp

primary
#406BB7
secondary
#C6B18D
accent
#A750D8
background
#F8F9FC
surface
#EFF1F9
border
#CACBD2
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #406BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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