#405CA7#405CA7

#405CA7 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.2% C 0.125 H 266.5°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#405CA7
RGBrgb(64, 92, 167)
HSLhsl(224, 45%, 45%)
HSVhsv(224, 62%, 65%)
CMYKcmyk(61.7%, 44.9%, 0%, 34.5%)
CIE-LABlab(40.46, 13.67, -43.58)
CIE-LCHlch(40.46, 45.67, 287.41°)
OKLaboklab(49.15% -0.0076 -0.1243)
OKLCHoklch(49.15% 0.125 266.5)
XYZxyz(12.9142, 11.5332, 38.0973)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CA7 #A78B40
analogous
#4090A7 #405CA7 #5740A7
triadic
#405CA7 #A7405C #5CA740
tetradic
#405CA7 #A74090 #A78B40 #40A757
square
#405CA7 #A74090 #A78B40 #40A757
split-complementary
#405CA7 #A75740 #90A740
monochromatic
#1E2B4F #2F447B #405CA7 #627CC3 #8EA1D4

Accessibility & contrast

On white

6.35
#405CA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#405CA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CA7
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CA7#FFFFFF#000000##FFFFFF
##405CA71.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3964AA
Deuteranopia (green-blind)
#2A5BA5
Tritanopia (blue-blind)
#006D79
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #405ca7;
/* rgb */ color: rgb(64, 92, 167);
/* oklch */ color: oklch(49.2% 0.125 266.5);
Tailwind
colors: {
  custom: {
    50: '#7e89c1',
    500: '#405ca7',
    950: '#000000',
  },
}
SCSS
$custom: #405ca7;
$custom-light: #7e89c1;
$custom-dark: #000000;
JSON
{
  "hex": "#405ca7",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 167
  },
  "hsl": {
    "h": 223.689,
    "s": 44.589,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49154,
    "c": 0.12452,
    "h": 266.5
  },
  "luminance": 0.11534
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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