#405CA4#405CA4

#405CA4 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.0% C 0.120 H 266.1°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#405CA4
RGBrgb(64, 92, 164)
HSLhsl(223, 44%, 45%)
HSVhsv(223, 61%, 64%)
CMYKcmyk(61%, 43.9%, 0%, 35.7%)
CIE-LABlab(40.28, 12.61, -42.09)
CIE-LCHlch(40.28, 43.93, 286.68°)
OKLaboklab(48.96% -0.0082 -0.1199)
OKLCHoklch(48.96% 0.12 266.1)
XYZxyz(12.6401, 11.4236, 36.6536)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CA4 #A48840
analogous
#408EA4 #405CA4 #5640A4
triadic
#405CA4 #A4405C #5CA440
tetradic
#405CA4 #A4408E #A48840 #40A456
square
#405CA4 #A4408E #A48840 #40A456
split-complementary
#405CA4 #A45640 #8EA440
monochromatic
#1E2B4C #2F4378 #405CA4 #607BC1 #8CA0D2

Accessibility & contrast

On white

6.39
#405CA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#405CA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CA4
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CA4#FFFFFF#000000##FFFFFF
##405CA41.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B64A7
Deuteranopia (green-blind)
#2D5BA2
Tritanopia (blue-blind)
#006C78
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #405ca4;
/* rgb */ color: rgb(64, 92, 164);
/* oklch */ color: oklch(49.0% 0.120 266.1);
Tailwind
colors: {
  custom: {
    50: '#7e89bf',
    500: '#405ca4',
    950: '#000000',
  },
}
SCSS
$custom: #405ca4;
$custom-light: #7e89bf;
$custom-dark: #000000;
JSON
{
  "hex": "#405ca4",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 164
  },
  "hsl": {
    "h": 223.2,
    "s": 43.86,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48959,
    "c": 0.12018,
    "h": 266.1
  },
  "luminance": 0.11425
}

Semantic roles & 50–950 ramp

primary
#405CA4
secondary
#BDAD83
accent
#B054D4
background
#F8F8FB
surface
#EFF0F7
border
#CACBD0
text
#0B0B12
muted
#7C7C81

Preview Lab

Preview with #405CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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