#405DBF#405DBF

#405DBF is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.0% C 0.157 H 268.0°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#405DBF
RGBrgb(64, 93, 191)
HSLhsl(226, 50%, 50%)
HSVhsv(226, 66%, 75%)
CMYKcmyk(66.5%, 51.3%, 0%, 25.1%)
CIE-LABlab(42.28, 21.57, -54.76)
CIE-LCHlch(42.28, 58.86, 291.50°)
OKLaboklab(51.03% -0.0054 -0.1572)
OKLCHoklch(51.03% 0.157 268)
XYZxyz(15.4294, 12.6788, 50.9142)
Luminance0.1268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DBF #BFA240
analogous
#409DBF #405DBF #6240BF
triadic
#405DBF #BF405D #5DBF40
tetradic
#405DBF #BF409D #BFA240 #40BF62
square
#405DBF #BF409D #BFA240 #40BF62
split-complementary
#405DBF #BF6240 #9DBF40
monochromatic
#213063 #314791 #405DBF #6E84CE #9CABDE

Accessibility & contrast

On white

5.94
#405DBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#405DBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DBF
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DBF#FFFFFF#000000##FFFFFF
##405DBF1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#226AC3
Deuteranopia (green-blind)
#005EBD
Tritanopia (blue-blind)
#007485
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #405dbf;
/* rgb */ color: rgb(64, 93, 191);
/* oklch */ color: oklch(51.0% 0.157 268.0);
Tailwind
colors: {
  custom: {
    50: '#838ad3',
    500: '#405dbf',
    950: '#000000',
  },
}
SCSS
$custom: #405dbf;
$custom-light: #838ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#405dbf",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 191
  },
  "hsl": {
    "h": 226.299,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.51028,
    "c": 0.15725,
    "h": 268
  },
  "luminance": 0.1268
}

Semantic roles & 50–950 ramp

primary
#405DBF
secondary
#CABD91
accent
#BA4ED9
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405DBF

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

Preview Lab → · Contrast checker → · Palette generator →

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