#405BBF#405BBF

#405BBF is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.6% C 0.160 H 268.7°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#405BBF
RGBrgb(64, 91, 191)
HSLhsl(227, 50%, 50%)
HSVhsv(227, 66%, 75%)
CMYKcmyk(66.5%, 52.4%, 0%, 25.1%)
CIE-LABlab(41.74, 22.85, -55.63)
CIE-LCHlch(41.74, 60.14, 292.34°)
OKLaboklab(50.62% -0.0036 -0.1597)
OKLCHoklch(50.62% 0.16 268.7)
XYZxyz(15.2562, 12.3323, 50.8565)
Luminance0.1233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BBF #BFA440
analogous
#409BBF #405BBF #6440BF
triadic
#405BBF #BF405B #5BBF40
tetradic
#405BBF #BF409B #BFA440 #40BF64
square
#405BBF #BF409B #BFA440 #40BF64
split-complementary
#405BBF #BF6440 #9BBF40
monochromatic
#212F63 #314591 #405BBF #6E82CE #9CAADE

Accessibility & contrast

On white

6.06
#405BBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#405BBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BBF
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BBF#FFFFFF#000000##FFFFFF
##405BBF1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B68C3
Deuteranopia (green-blind)
#005DBD
Tritanopia (blue-blind)
#007384
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405bbf;
/* rgb */ color: rgb(64, 91, 191);
/* oklch */ color: oklch(50.6% 0.160 268.7);
Tailwind
colors: {
  custom: {
    50: '#8389d3',
    500: '#405bbf',
    950: '#000000',
  },
}
SCSS
$custom: #405bbf;
$custom-light: #8389d3;
$custom-dark: #000000;
JSON
{
  "hex": "#405bbf",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 191
  },
  "hsl": {
    "h": 227.244,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.50623,
    "c": 0.15977,
    "h": 268.7
  },
  "luminance": 0.12334
}

Semantic roles & 50–950 ramp

primary
#405BBF
secondary
#CABE91
accent
#BC4ED9
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405BBF

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

Preview Lab → · Contrast checker → · Palette generator →

#405BBF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva