#405AA9#405AA9

#405AA9 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.9% C 0.130 H 267.7°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#405AA9
RGBrgb(64, 90, 169)
HSLhsl(225, 45%, 46%)
HSVhsv(225, 62%, 66%)
CMYKcmyk(62.1%, 46.7%, 0%, 33.7%)
CIE-LABlab(40.02, 15.66, -45.47)
CIE-LCHlch(40.02, 48.09, 289.01°)
OKLaboklab(48.86% -0.0052 -0.1299)
OKLCHoklch(48.86% 0.13 267.7)
XYZxyz(12.9295, 11.2658, 39.0216)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405AA9 #A98F40
analogous
#408EA9 #405AA9 #5A40A9
triadic
#405AA9 #A9405A #5AA940
tetradic
#405AA9 #A9408E #A98F40 #40A95A
square
#405AA9 #A9408E #A98F40 #40A95A
split-complementary
#405AA9 #A95A40 #8EA940
monochromatic
#1E2B50 #2F427D #405AA9 #627BC4 #8FA0D5

Accessibility & contrast

On white

6.45
#405AA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #405AA9
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405AA9#FFFFFF#000000##FFFFFF
##405AA91.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3463AC
Deuteranopia (green-blind)
#225AA7
Tritanopia (blue-blind)
#006C79
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #405aa9;
/* rgb */ color: rgb(64, 90, 169);
/* oklch */ color: oklch(48.9% 0.130 267.7);
Tailwind
colors: {
  custom: {
    50: '#7f88c3',
    500: '#405aa9',
    950: '#000000',
  },
}
SCSS
$custom: #405aa9;
$custom-light: #7f88c3;
$custom-dark: #000000;
JSON
{
  "hex": "#405aa9",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 169
  },
  "hsl": {
    "h": 225.143,
    "s": 45.064,
    "l": 45.686
  },
  "oklch": {
    "l": 0.48857,
    "c": 0.12996,
    "h": 267.7
  },
  "luminance": 0.11267
}

Semantic roles & 50–950 ramp

primary
#405AA9
secondary
#C0B185
accent
#B553D5
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B12
muted
#7C7C81

Preview Lab

Preview with #405AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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