#405BBE#405BBE

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

Color values

HEX#405BBE
RGBrgb(64, 91, 190)
HSLhsl(227, 50%, 50%)
HSVhsv(227, 66%, 75%)
CMYKcmyk(66.3%, 52.1%, 0%, 25.5%)
CIE-LABlab(41.67, 22.50, -55.15)
CIE-LCHlch(41.67, 59.57, 292.19°)
OKLaboklab(50.55% -0.0037 -0.1583)
OKLCHoklch(50.55% 0.158 268.7)
XYZxyz(15.1465, 12.2885, 50.2789)
Luminance0.1229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BBE #BEA340
analogous
#409ABE #405BBE #6440BE
triadic
#405BBE #BE405B #5BBE40
tetradic
#405BBE #BE409A #BEA340 #40BE64
square
#405BBE #BE409A #BEA340 #40BE64
split-complementary
#405BBE #BE6440 #9ABE40
monochromatic
#212F62 #314590 #405BBE #6D82CE #9BA9DD

Accessibility & contrast

On white

6.07
#405BBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#405BBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BBE
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BBE#FFFFFF#000000##FFFFFF
##405BBE1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D68C2
Deuteranopia (green-blind)
#005DBC
Tritanopia (blue-blind)
#007284
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405bbe;
/* rgb */ color: rgb(64, 91, 190);
/* oklch */ color: oklch(50.5% 0.158 268.7);
Tailwind
colors: {
  custom: {
    50: '#8389d2',
    500: '#405bbe',
    950: '#000000',
  },
}
SCSS
$custom: #405bbe;
$custom-light: #8389d2;
$custom-dark: #000000;
JSON
{
  "hex": "#405bbe",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 190
  },
  "hsl": {
    "h": 227.143,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.50549,
    "c": 0.15838,
    "h": 268.7
  },
  "luminance": 0.1229
}

Semantic roles & 50–950 ramp

primary
#405BBE
secondary
#C9BD90
accent
#BB4FD9
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405BBE

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

Preview Lab → · Contrast checker → · Palette generator →

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