#405EBF#405EBF

#405EBF is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.2% C 0.156 H 267.7°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#405EBF
RGBrgb(64, 94, 191)
HSLhsl(226, 50%, 50%)
HSVhsv(226, 66%, 75%)
CMYKcmyk(66.5%, 50.8%, 0%, 25.1%)
CIE-LABlab(42.54, 20.93, -54.33)
CIE-LCHlch(42.54, 58.22, 291.07°)
OKLaboklab(51.23% -0.0063 -0.1559)
OKLCHoklch(51.23% 0.156 267.7)
XYZxyz(15.5178, 12.8555, 50.9437)
Luminance0.1286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405EBF #BFA140
analogous
#409DBF #405EBF #6240BF
triadic
#405EBF #BF405E #5EBF40
tetradic
#405EBF #BF409D #BFA140 #40BF62
square
#405EBF #BF409D #BFA140 #40BF62
split-complementary
#405EBF #BF6240 #9DBF40
monochromatic
#213163 #314791 #405EBF #6E85CE #9CABDE

Accessibility & contrast

On white

5.88
#405EBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#405EBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405EBF
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405EBF#FFFFFF#000000##FFFFFF
##405EBF1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#256AC2
Deuteranopia (green-blind)
#005FBD
Tritanopia (blue-blind)
#007585
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #405ebf;
/* rgb */ color: rgb(64, 94, 191);
/* oklch */ color: oklch(51.2% 0.156 267.7);
Tailwind
colors: {
  custom: {
    50: '#838bd3',
    500: '#405ebf',
    950: '#000000',
  },
}
SCSS
$custom: #405ebf;
$custom-light: #838bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#405ebf",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 191
  },
  "hsl": {
    "h": 225.827,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.51232,
    "c": 0.15599,
    "h": 267.7
  },
  "luminance": 0.12857
}

Semantic roles & 50–950 ramp

primary
#405EBF
secondary
#CABC91
accent
#B94ED9
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405EBF

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

Preview Lab → · Contrast checker → · Palette generator →

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