#405CBB#405CBB

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

Color values

HEX#405CBB
RGBrgb(64, 92, 187)
HSLhsl(226, 49%, 49%)
HSVhsv(226, 66%, 73%)
CMYKcmyk(65.8%, 50.8%, 0%, 26.7%)
CIE-LABlab(41.74, 20.78, -53.30)
CIE-LCHlch(41.74, 57.21, 291.30°)
OKLaboklab(50.53% -0.0049 -0.1529)
OKLCHoklch(50.53% 0.153 268.2)
XYZxyz(14.9081, 12.3308, 48.5985)
Luminance0.1233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CBB #BB9F40
analogous
#409ABB #405CBB #6140BB
triadic
#405CBB #BB405C #5CBB40
tetradic
#405CBB #BB409A #BB9F40 #40BB61
square
#405CBB #BB409A #BB9F40 #40BB61
split-complementary
#405CBB #BB6140 #9ABB40
monochromatic
#212F60 #30468D #405CBB #6C82CD #99A8DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##405CBB#FFFFFF#000000##FFFFFF
##405CBB1.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)
#2568BE
Deuteranopia (green-blind)
#005DB9
Tritanopia (blue-blind)
#007283
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405cbb;
/* rgb */ color: rgb(64, 92, 187);
/* oklch */ color: oklch(50.5% 0.153 268.2);
Tailwind
colors: {
  custom: {
    50: '#8289d0',
    500: '#405cbb',
    950: '#000000',
  },
}
SCSS
$custom: #405cbb;
$custom-light: #8289d0;
$custom-dark: #000000;
JSON
{
  "hex": "#405cbb",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 187
  },
  "hsl": {
    "h": 226.341,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.50534,
    "c": 0.15295,
    "h": 268.2
  },
  "luminance": 0.12332
}

Semantic roles & 50–950 ramp

primary
#405CBB
secondary
#C8BB8F
accent
#B94FD9
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0B14
muted
#7D7C82

Preview Lab

Preview with #405CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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