#405AA6#405AA6

#405AA6 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.7% C 0.126 H 267.4°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#405AA6
RGBrgb(64, 90, 166)
HSLhsl(225, 44%, 45%)
HSVhsv(225, 61%, 65%)
CMYKcmyk(61.4%, 45.8%, 0%, 34.9%)
CIE-LABlab(39.84, 14.60, -43.99)
CIE-LCHlch(39.84, 46.35, 288.37°)
OKLaboklab(48.66% -0.0057 -0.1255)
OKLCHoklch(48.66% 0.126 267.4)
XYZxyz(12.6511, 11.1544, 37.5553)
Luminance0.1115 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405AA6 #A68C40
analogous
#408DA6 #405AA6 #5940A6
triadic
#405AA6 #A6405A #5AA640
tetradic
#405AA6 #A6408D #A68C40 #40A659
square
#405AA6 #A6408D #A68C40 #40A659
split-complementary
#405AA6 #A65940 #8DA640
monochromatic
#1E2A4E #2F427A #405AA6 #617AC2 #8D9FD3

Accessibility & contrast

On white

6.50
#405AA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#405AA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405AA6
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405AA6#FFFFFF#000000##FFFFFF
##405AA61.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3663A9
Deuteranopia (green-blind)
#275AA4
Tritanopia (blue-blind)
#006B78
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #405aa6;
/* rgb */ color: rgb(64, 90, 166);
/* oklch */ color: oklch(48.7% 0.126 267.4);
Tailwind
colors: {
  custom: {
    50: '#7e88c1',
    500: '#405aa6',
    950: '#000000',
  },
}
SCSS
$custom: #405aa6;
$custom-light: #7e88c1;
$custom-dark: #000000;
JSON
{
  "hex": "#405aa6",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 166
  },
  "hsl": {
    "h": 224.706,
    "s": 44.348,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48656,
    "c": 0.12564,
    "h": 267.4
  },
  "luminance": 0.11155
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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