#405AA5#405AA5

#405AA5 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.6% C 0.124 H 267.3°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#405AA5
RGBrgb(64, 90, 165)
HSLhsl(225, 44%, 45%)
HSVhsv(225, 61%, 65%)
CMYKcmyk(61.2%, 45.5%, 0%, 35.3%)
CIE-LABlab(39.78, 14.25, -43.49)
CIE-LCHlch(39.78, 45.76, 288.14°)
OKLaboklab(48.59% -0.0058 -0.124)
OKLCHoklch(48.59% 0.124 267.3)
XYZxyz(12.5597, 11.1179, 37.0741)
Luminance0.1112 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405AA5 #A58B40
analogous
#408DA5 #405AA5 #5840A5
triadic
#405AA5 #A5405A #5AA540
tetradic
#405AA5 #A5408D #A58B40 #40A558
square
#405AA5 #A5408D #A58B40 #40A558
split-complementary
#405AA5 #A55840 #8DA540
monochromatic
#1E2A4D #2F4279 #405AA5 #617AC2 #8D9FD3

Accessibility & contrast

On white

6.51
#405AA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #405AA5
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405AA5#FFFFFF#000000##FFFFFF
##405AA51.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3763A8
Deuteranopia (green-blind)
#2859A3
Tritanopia (blue-blind)
#006B77
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #405aa5;
/* rgb */ color: rgb(64, 90, 165);
/* oklch */ color: oklch(48.6% 0.124 267.3);
Tailwind
colors: {
  custom: {
    50: '#7e88c0',
    500: '#405aa5',
    950: '#000000',
  },
}
SCSS
$custom: #405aa5;
$custom-light: #7e88c0;
$custom-dark: #000000;
JSON
{
  "hex": "#405aa5",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 165
  },
  "hsl": {
    "h": 224.554,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48589,
    "c": 0.12419,
    "h": 267.3
  },
  "luminance": 0.11119
}

Semantic roles & 50–950 ramp

primary
#405AA5
secondary
#BEAF83
accent
#B354D4
background
#F8F8FB
surface
#EFEFF7
border
#CACAD0
text
#0B0B12
muted
#7C7C81

Preview Lab

Preview with #405AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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