#405EA7#405EA7

#405EA7 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.6% C 0.122 H 265.4°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#405EA7
RGBrgb(64, 94, 167)
HSLhsl(223, 45%, 45%)
HSVhsv(223, 62%, 65%)
CMYKcmyk(61.7%, 43.7%, 0%, 34.5%)
CIE-LABlab(41.03, 12.38, -42.67)
CIE-LCHlch(41.03, 44.43, 286.18°)
OKLaboklab(49.59% -0.0098 -0.1216)
OKLCHoklch(49.59% 0.122 265.4)
XYZxyz(13.0897, 11.8843, 38.1558)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405EA7 #A78940
analogous
#4092A7 #405EA7 #5540A7
triadic
#405EA7 #A7405E #5EA740
tetradic
#405EA7 #A74092 #A78940 #40A755
square
#405EA7 #A74092 #A78940 #40A755
split-complementary
#405EA7 #A75540 #92A740
monochromatic
#1E2C4F #2F457B #405EA7 #627EC3 #8EA2D4

Accessibility & contrast

On white

6.22
#405EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#405EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405EA7
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405EA7#FFFFFF#000000##FFFFFF
##405EA71.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D66AA
Deuteranopia (green-blind)
#2E5CA5
Tritanopia (blue-blind)
#006E7A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #405ea7;
/* rgb */ color: rgb(64, 94, 167);
/* oklch */ color: oklch(49.6% 0.122 265.4);
Tailwind
colors: {
  custom: {
    50: '#7e8bc1',
    500: '#405ea7',
    950: '#000000',
  },
}
SCSS
$custom: #405ea7;
$custom-light: #7e8bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#405ea7",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 167
  },
  "hsl": {
    "h": 222.524,
    "s": 44.589,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4959,
    "c": 0.12199,
    "h": 265.4
  },
  "luminance": 0.11885
}

Semantic roles & 50–950 ramp

primary
#405EA7
secondary
#BFAE84
accent
#AF54D4
background
#F8F8FB
surface
#EFF0F7
border
#CACBD0
text
#0B0B12
muted
#7C7C81

Preview Lab

Preview with #405EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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