#405EBE#405EBE

#405EBE is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.2% C 0.155 H 267.6°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#405EBE
RGBrgb(64, 94, 190)
HSLhsl(226, 50%, 50%)
HSVhsv(226, 66%, 75%)
CMYKcmyk(66.3%, 50.5%, 0%, 25.5%)
CIE-LABlab(42.48, 20.57, -53.85)
CIE-LCHlch(42.48, 57.65, 290.90°)
OKLaboklab(51.16% -0.0064 -0.1545)
OKLCHoklch(51.16% 0.155 267.6)
XYZxyz(15.4081, 12.8117, 50.3661)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405EBE #BEA040
analogous
#409DBE #405EBE #6140BE
triadic
#405EBE #BE405E #5EBE40
tetradic
#405EBE #BE409D #BEA040 #40BE61
square
#405EBE #BE409D #BEA040 #40BE61
split-complementary
#405EBE #BE6140 #9DBE40
monochromatic
#213162 #314790 #405EBE #6D84CE #9BABDD

Accessibility & contrast

On white

5.89
#405EBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#405EBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405EBE
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405EBE#FFFFFF#000000##FFFFFF
##405EBE1.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#276AC1
Deuteranopia (green-blind)
#005FBC
Tritanopia (blue-blind)
#007485
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #405ebe;
/* rgb */ color: rgb(64, 94, 190);
/* oklch */ color: oklch(51.2% 0.155 267.6);
Tailwind
colors: {
  custom: {
    50: '#828bd2',
    500: '#405ebe',
    950: '#000000',
  },
}
SCSS
$custom: #405ebe;
$custom-light: #828bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#405ebe",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 190
  },
  "hsl": {
    "h": 225.714,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.5116,
    "c": 0.1546,
    "h": 267.6
  },
  "luminance": 0.12813
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405EBE

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

Preview Lab → · Contrast checker → · Palette generator →

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