#405BBD#405BBD

#405BBD is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.5% C 0.157 H 268.6°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#405BBD
RGBrgb(64, 91, 189)
HSLhsl(227, 49%, 50%)
HSVhsv(227, 66%, 74%)
CMYKcmyk(66.1%, 51.9%, 0%, 25.9%)
CIE-LABlab(41.60, 22.14, -54.68)
CIE-LCHlch(41.60, 58.99, 292.04°)
OKLaboklab(50.48% -0.0037 -0.1569)
OKLCHoklch(50.48% 0.157 268.6)
XYZxyz(15.0376, 12.2449, 49.7053)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BBD #BDA240
analogous
#409ABD #405BBD #6440BD
triadic
#405BBD #BD405B #5BBD40
tetradic
#405BBD #BD409A #BDA240 #40BD64
square
#405BBD #BD409A #BDA240 #40BD64
split-complementary
#405BBD #BD6440 #9ABD40
monochromatic
#212F62 #31458F #405BBD #6D82CD #9AA9DD

Accessibility & contrast

On white

6.09
#405BBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#405BBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BBD
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BBD#FFFFFF#000000##FFFFFF
##405BBD1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F68C0
Deuteranopia (green-blind)
#005DBB
Tritanopia (blue-blind)
#007283
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405bbd;
/* rgb */ color: rgb(64, 91, 189);
/* oklch */ color: oklch(50.5% 0.157 268.6);
Tailwind
colors: {
  custom: {
    50: '#8289d1',
    500: '#405bbd',
    950: '#000000',
  },
}
SCSS
$custom: #405bbd;
$custom-light: #8289d1;
$custom-dark: #000000;
JSON
{
  "hex": "#405bbd",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 189
  },
  "hsl": {
    "h": 227.04,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50476,
    "c": 0.15699,
    "h": 268.6
  },
  "luminance": 0.12246
}

Semantic roles & 50–950 ramp

primary
#405BBD
secondary
#C9BD90
accent
#BB4FD9
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0C0B14
muted
#7D7C82

Preview Lab

Preview with #405BBD

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

Preview Lab → · Contrast checker → · Palette generator →

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