#405FAE#405FAE

#405FAE is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.3% C 0.131 H 265.8°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#405FAE
RGBrgb(64, 95, 174)
HSLhsl(223, 46%, 47%)
HSVhsv(223, 63%, 68%)
CMYKcmyk(63.2%, 45.4%, 0%, 31.8%)
CIE-LABlab(41.73, 14.22, -45.68)
CIE-LCHlch(41.73, 47.84, 287.29°)
OKLaboklab(50.27% -0.0096 -0.1304)
OKLCHoklch(50.27% 0.131 265.8)
XYZxyz(13.8439, 12.3292, 41.6864)
Luminance0.1233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FAE #AE8F40
analogous
#4096AE #405FAE #5840AE
triadic
#405FAE #AE405F #5FAE40
tetradic
#405FAE #AE4096 #AE8F40 #40AE58
square
#405FAE #AE4096 #AE8F40 #40AE58
split-complementary
#405FAE #AE5840 #96AE40
monochromatic
#1F2E55 #304781 #405FAE #6580C6 #92A5D7

Accessibility & contrast

On white

6.06
#405FAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#405FAE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FAE
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FAE#FFFFFF#000000##FFFFFF
##405FAE1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3968B1
Deuteranopia (green-blind)
#285EAC
Tritanopia (blue-blind)
#00717E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405fae;
/* rgb */ color: rgb(64, 95, 174);
/* oklch */ color: oklch(50.3% 0.131 265.8);
Tailwind
colors: {
  custom: {
    50: '#7f8cc7',
    500: '#405fae',
    950: '#000000',
  },
}
SCSS
$custom: #405fae;
$custom-light: #7f8cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#405fae",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 174
  },
  "hsl": {
    "h": 223.091,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.50266,
    "c": 0.13078,
    "h": 265.8
  },
  "luminance": 0.1233
}

Semantic roles & 50–950 ramp

primary
#405FAE
secondary
#C2B288
accent
#B152D6
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #405FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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