#405AA4#405AA4

#405AA4 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.5% C 0.123 H 267.2°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#405AA4
RGBrgb(64, 90, 164)
HSLhsl(224, 44%, 45%)
HSVhsv(224, 61%, 64%)
CMYKcmyk(61%, 45.1%, 0%, 35.7%)
CIE-LABlab(39.72, 13.90, -42.99)
CIE-LCHlch(39.72, 45.18, 287.91°)
OKLaboklab(48.52% -0.006 -0.1226)
OKLCHoklch(48.52% 0.123 267.2)
XYZxyz(12.4691, 11.0816, 36.5966)
Luminance0.1108 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405AA4 #A48A40
analogous
#408CA4 #405AA4 #5840A4
triadic
#405AA4 #A4405A #5AA440
tetradic
#405AA4 #A4408C #A48A40 #40A458
square
#405AA4 #A4408C #A48A40 #40A458
split-complementary
#405AA4 #A45840 #8CA440
monochromatic
#1E2A4C #2F4278 #405AA4 #6079C1 #8C9ED2

Accessibility & contrast

On white

6.53
#405AA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#405AA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405AA4
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405AA4#FFFFFF#000000##FFFFFF
##405AA41.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3862A7
Deuteranopia (green-blind)
#2959A2
Tritanopia (blue-blind)
#006B77
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #405aa4;
/* rgb */ color: rgb(64, 90, 164);
/* oklch */ color: oklch(48.5% 0.123 267.2);
Tailwind
colors: {
  custom: {
    50: '#7e88bf',
    500: '#405aa4',
    950: '#000000',
  },
}
SCSS
$custom: #405aa4;
$custom-light: #7e88bf;
$custom-dark: #000000;
JSON
{
  "hex": "#405aa4",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 164
  },
  "hsl": {
    "h": 224.4,
    "s": 43.86,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48523,
    "c": 0.12274,
    "h": 267.2
  },
  "luminance": 0.11083
}

Semantic roles & 50–950 ramp

primary
#405AA4
secondary
#BDAE83
accent
#B254D4
background
#F8F8FB
surface
#EFEFF7
border
#CACAD0
text
#0B0B12
muted
#7C7C81

Preview Lab

Preview with #405AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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