#406BB5#406BB5

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

Color values

HEX#406BB5
RGBrgb(64, 107, 181)
HSLhsl(218, 48%, 48%)
HSVhsv(218, 65%, 71%)
CMYKcmyk(64.6%, 40.9%, 0%, 29%)
CIE-LABlab(45.55, 9.09, -43.69)
CIE-LCHlch(45.55, 44.62, 281.75°)
OKLaboklab(53.34% -0.0207 -0.1244)
OKLCHoklch(53.34% 0.126 260.5)
XYZxyz(15.7096, 14.9401, 45.7629)
Luminance0.1494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406BB5 #B58A40
analogous
#40A5B5 #406BB5 #5040B5
triadic
#406BB5 #B5406B #6BB540
tetradic
#406BB5 #B540A5 #B58A40 #40B550
square
#406BB5 #B540A5 #B58A40 #40B550
split-complementary
#406BB5 #B55040 #A5B540
monochromatic
#20365B #305088 #406BB5 #688CCA #96AFDA

Accessibility & contrast

On white

5.27
#406BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#406BB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406BB5
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406BB5#FFFFFF#000000##FFFFFF
##406BB51.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A72B8
Deuteranopia (green-blind)
#3867B3
Tritanopia (blue-blind)
#007C87
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #406bb5;
/* rgb */ color: rgb(64, 107, 181);
/* oklch */ color: oklch(53.3% 0.126 260.5);
Tailwind
colors: {
  custom: {
    50: '#8094cb',
    500: '#406bb5',
    950: '#000000',
  },
}
SCSS
$custom: #406bb5;
$custom-light: #8094cb;
$custom-dark: #000000;
JSON
{
  "hex": "#406bb5",
  "rgb": {
    "r": 64,
    "g": 107,
    "b": 181
  },
  "hsl": {
    "h": 217.949,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.5334,
    "c": 0.12612,
    "h": 260.5
  },
  "luminance": 0.14942
}

Semantic roles & 50–950 ramp

primary
#406BB5
secondary
#C5B08B
accent
#A650D7
background
#F8F9FC
surface
#EFF1F8
border
#CACBD1
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #406BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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