#405AAA#405AAA

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

Color values

HEX#405AAA
RGBrgb(64, 90, 170)
HSLhsl(225, 45%, 46%)
HSVhsv(225, 62%, 67%)
CMYKcmyk(62.4%, 47.1%, 0%, 33.3%)
CIE-LABlab(40.09, 16.02, -45.96)
CIE-LCHlch(40.09, 48.67, 289.21°)
OKLaboklab(48.93% -0.005 -0.1313)
OKLCHoklch(48.93% 0.131 267.8)
XYZxyz(13.0237, 11.3035, 39.5179)
Luminance0.1130 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405AAA #AA9040
analogous
#408FAA #405AAA #5B40AA
triadic
#405AAA #AA405A #5AAA40
tetradic
#405AAA #AA408F #AA9040 #40AA5B
square
#405AAA #AA408F #AA9040 #40AA5B
split-complementary
#405AAA #AA5B40 #8FAA40
monochromatic
#1F2B51 #2F427E #405AAA #637BC4 #8FA0D5

Accessibility & contrast

On white

6.44
#405AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#405AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405AAA
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405AAA#FFFFFF#000000##FFFFFF
##405AAA1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3364AD
Deuteranopia (green-blind)
#215AA8
Tritanopia (blue-blind)
#006C7A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #405aaa;
/* rgb */ color: rgb(64, 90, 170);
/* oklch */ color: oklch(48.9% 0.131 267.8);
Tailwind
colors: {
  custom: {
    50: '#7f88c4',
    500: '#405aaa',
    950: '#000000',
  },
}
SCSS
$custom: #405aaa;
$custom-light: #7f88c4;
$custom-dark: #000000;
JSON
{
  "hex": "#405aaa",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 170
  },
  "hsl": {
    "h": 225.283,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.48925,
    "c": 0.13141,
    "h": 267.8
  },
  "luminance": 0.11305
}

Semantic roles & 50–950 ramp

primary
#405AAA
secondary
#C0B286
accent
#B553D5
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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