#405CA6#405CA6

#405CA6 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.1% C 0.123 H 266.4°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#405CA6
RGBrgb(64, 92, 166)
HSLhsl(224, 44%, 45%)
HSVhsv(224, 61%, 65%)
CMYKcmyk(61.4%, 44.6%, 0%, 34.9%)
CIE-LABlab(40.40, 13.31, -43.08)
CIE-LCHlch(40.40, 45.09, 287.17°)
OKLaboklab(49.09% -0.0078 -0.1228)
OKLCHoklch(49.09% 0.123 266.4)
XYZxyz(12.8221, 11.4964, 37.6123)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CA6 #A68A40
analogous
#408FA6 #405CA6 #5740A6
triadic
#405CA6 #A6405C #5CA640
tetradic
#405CA6 #A6408F #A68A40 #40A657
square
#405CA6 #A6408F #A68A40 #40A657
split-complementary
#405CA6 #A65740 #8FA640
monochromatic
#1E2B4E #2F447A #405CA6 #617CC2 #8DA0D3

Accessibility & contrast

On white

6.36
#405CA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#405CA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CA6
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CA6#FFFFFF#000000##FFFFFF
##405CA61.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A64A9
Deuteranopia (green-blind)
#2B5BA4
Tritanopia (blue-blind)
#006D79
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #405ca6;
/* rgb */ color: rgb(64, 92, 166);
/* oklch */ color: oklch(49.1% 0.123 266.4);
Tailwind
colors: {
  custom: {
    50: '#7e89c1',
    500: '#405ca6',
    950: '#000000',
  },
}
SCSS
$custom: #405ca6;
$custom-light: #7e89c1;
$custom-dark: #000000;
JSON
{
  "hex": "#405ca6",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 166
  },
  "hsl": {
    "h": 223.529,
    "s": 44.348,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49089,
    "c": 0.12308,
    "h": 266.4
  },
  "luminance": 0.11497
}

Semantic roles & 50–950 ramp

primary
#405CA6
secondary
#BEAE84
accent
#B154D4
background
#F8F8FB
surface
#EFF0F7
border
#CACBD0
text
#0B0B12
muted
#7C7C81

Preview Lab

Preview with #405CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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