#405CBE#405CBE

#405CBE is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.8% C 0.157 H 268.3°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#405CBE
RGBrgb(64, 92, 190)
HSLhsl(227, 50%, 50%)
HSVhsv(227, 66%, 75%)
CMYKcmyk(66.3%, 51.6%, 0%, 25.5%)
CIE-LABlab(41.94, 21.85, -54.72)
CIE-LCHlch(41.94, 58.92, 291.77°)
OKLaboklab(50.75% -0.0046 -0.1571)
OKLCHoklch(50.75% 0.157 268.3)
XYZxyz(15.2326, 12.4606, 50.3076)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CBE #BEA240
analogous
#409BBE #405CBE #6340BE
triadic
#405CBE #BE405C #5CBE40
tetradic
#405CBE #BE409B #BEA240 #40BE63
square
#405CBE #BE409B #BEA240 #40BE63
split-complementary
#405CBE #BE6340 #9BBE40
monochromatic
#213062 #314690 #405CBE #6D83CE #9BAADD

Accessibility & contrast

On white

6.01
#405CBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#405CBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CBE
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CBE#FFFFFF#000000##FFFFFF
##405CBE1.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2169C1
Deuteranopia (green-blind)
#005EBC
Tritanopia (blue-blind)
#007384
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405cbe;
/* rgb */ color: rgb(64, 92, 190);
/* oklch */ color: oklch(50.8% 0.157 268.3);
Tailwind
colors: {
  custom: {
    50: '#8289d2',
    500: '#405cbe',
    950: '#000000',
  },
}
SCSS
$custom: #405cbe;
$custom-light: #8289d2;
$custom-dark: #000000;
JSON
{
  "hex": "#405cbe",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 190
  },
  "hsl": {
    "h": 226.667,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.50752,
    "c": 0.15713,
    "h": 268.3
  },
  "luminance": 0.12462
}

Semantic roles & 50–950 ramp

primary
#405CBE
secondary
#C9BD90
accent
#BA4FD9
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405CBE

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

Preview Lab → · Contrast checker → · Palette generator →

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