#406BB4#406BB4

#406BB4 is a mid, vivid blue. Relative luminance 0.149; OKLCH L 53.3% C 0.125 H 260.3°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#406BB4
RGBrgb(64, 107, 180)
HSLhsl(218, 48%, 48%)
HSVhsv(218, 64%, 71%)
CMYKcmyk(64.4%, 40.6%, 0%, 29.4%)
CIE-LABlab(45.50, 8.73, -43.20)
CIE-LCHlch(45.50, 44.07, 281.43°)
OKLaboklab(53.28% -0.0209 -0.123)
OKLCHoklch(53.28% 0.125 260.3)
XYZxyz(15.6074, 14.8992, 45.2245)
Luminance0.1490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406BB4 #B48940
analogous
#40A5B4 #406BB4 #4F40B4
triadic
#406BB4 #B4406B #6BB440
tetradic
#406BB4 #B440A5 #B48940 #40B44F
square
#406BB4 #B440A5 #B48940 #40B44F
split-complementary
#406BB4 #B44F40 #A5B440
monochromatic
#20355A #305087 #406BB4 #688CC9 #95AED9

Accessibility & contrast

On white

5.28
#406BB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#406BB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406BB4
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406BB4#FFFFFF#000000##FFFFFF
##406BB41.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A72B7
Deuteranopia (green-blind)
#3967B2
Tritanopia (blue-blind)
#007C87
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #406bb4;
/* rgb */ color: rgb(64, 107, 180);
/* oklch */ color: oklch(53.3% 0.125 260.3);
Tailwind
colors: {
  custom: {
    50: '#8094cb',
    500: '#406bb4',
    950: '#000000',
  },
}
SCSS
$custom: #406bb4;
$custom-light: #8094cb;
$custom-dark: #000000;
JSON
{
  "hex": "#406bb4",
  "rgb": {
    "r": 64,
    "g": 107,
    "b": 180
  },
  "hsl": {
    "h": 217.759,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.53278,
    "c": 0.12474,
    "h": 260.3
  },
  "luminance": 0.14901
}

Semantic roles & 50–950 ramp

primary
#406BB4
secondary
#C5AF8B
accent
#A551D7
background
#F8F9FC
surface
#EFF1F8
border
#CACBD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #406BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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