#405DBE#405DBE

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

Color values

HEX#405DBE
RGBrgb(64, 93, 190)
HSLhsl(226, 50%, 50%)
HSVhsv(226, 66%, 75%)
CMYKcmyk(66.3%, 51.1%, 0%, 25.5%)
CIE-LABlab(42.21, 21.21, -54.29)
CIE-LCHlch(42.21, 58.28, 291.34°)
OKLaboklab(50.96% -0.0055 -0.1558)
OKLCHoklch(50.96% 0.156 268)
XYZxyz(15.3198, 12.6350, 50.3367)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DBE #BEA140
analogous
#409CBE #405DBE #6240BE
triadic
#405DBE #BE405D #5DBE40
tetradic
#405DBE #BE409C #BEA140 #40BE62
square
#405DBE #BE409C #BEA140 #40BE62
split-complementary
#405DBE #BE6240 #9CBE40
monochromatic
#213062 #314790 #405DBE #6D84CE #9BAADD

Accessibility & contrast

On white

5.95
#405DBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#405DBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DBE
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DBE#FFFFFF#000000##FFFFFF
##405DBE1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#246AC1
Deuteranopia (green-blind)
#005EBC
Tritanopia (blue-blind)
#007484
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #405dbe;
/* rgb */ color: rgb(64, 93, 190);
/* oklch */ color: oklch(51.0% 0.156 268.0);
Tailwind
colors: {
  custom: {
    50: '#828ad2',
    500: '#405dbe',
    950: '#000000',
  },
}
SCSS
$custom: #405dbe;
$custom-light: #828ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#405dbe",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 190
  },
  "hsl": {
    "h": 226.19,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.50956,
    "c": 0.15586,
    "h": 268
  },
  "luminance": 0.12636
}

Semantic roles & 50–950 ramp

primary
#405DBE
secondary
#C9BC90
accent
#B94FD9
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405DBE

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

Preview Lab → · Contrast checker → · Palette generator →

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