#405BA4#405BA4

#405BA4 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.7% C 0.121 H 266.7°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#405BA4
RGBrgb(64, 91, 164)
HSLhsl(224, 44%, 45%)
HSVhsv(224, 61%, 64%)
CMYKcmyk(61%, 44.5%, 0%, 35.7%)
CIE-LABlab(40.00, 13.25, -42.54)
CIE-LCHlch(40.00, 44.56, 287.30°)
OKLaboklab(48.74% -0.0071 -0.1212)
OKLCHoklch(48.74% 0.121 266.7)
XYZxyz(12.5540, 11.2514, 36.6249)
Luminance0.1125 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BA4 #A48940
analogous
#408DA4 #405BA4 #5740A4
triadic
#405BA4 #A4405B #5BA440
tetradic
#405BA4 #A4408D #A48940 #40A457
square
#405BA4 #A4408D #A48940 #40A457
split-complementary
#405BA4 #A45740 #8DA440
monochromatic
#1E2A4C #2F4378 #405BA4 #607AC1 #8C9FD2

Accessibility & contrast

On white

6.46
#405BA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#405BA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BA4
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BA4#FFFFFF#000000##FFFFFF
##405BA41.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A63A7
Deuteranopia (green-blind)
#2B5AA2
Tritanopia (blue-blind)
#006B77
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #405ba4;
/* rgb */ color: rgb(64, 91, 164);
/* oklch */ color: oklch(48.7% 0.121 266.7);
Tailwind
colors: {
  custom: {
    50: '#7e89bf',
    500: '#405ba4',
    950: '#000000',
  },
}
SCSS
$custom: #405ba4;
$custom-light: #7e89bf;
$custom-dark: #000000;
JSON
{
  "hex": "#405ba4",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 164
  },
  "hsl": {
    "h": 223.8,
    "s": 43.86,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4874,
    "c": 0.12146,
    "h": 266.7
  },
  "luminance": 0.11252
}

Semantic roles & 50–950 ramp

primary
#405BA4
secondary
#BDAD83
accent
#B154D4
background
#F8F8FB
surface
#EFEFF7
border
#CACAD0
text
#0B0B12
muted
#7C7C81

Preview Lab

Preview with #405BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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