#405AAB#405AAB

#405AAB is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.0% C 0.133 H 267.9°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#405AAB
RGBrgb(64, 90, 171)
HSLhsl(225, 46%, 46%)
HSVhsv(225, 63%, 67%)
CMYKcmyk(62.6%, 47.4%, 0%, 32.9%)
CIE-LABlab(40.15, 16.37, -46.45)
CIE-LCHlch(40.15, 49.25, 289.42°)
OKLaboklab(48.99% -0.0049 -0.1327)
OKLCHoklch(48.99% 0.133 267.9)
XYZxyz(13.1187, 11.3415, 40.0180)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405AAB #AB9140
analogous
#408FAB #405AAB #5B40AB
triadic
#405AAB #AB405A #5AAB40
tetradic
#405AAB #AB408F #AB9140 #40AB5B
square
#405AAB #AB408F #AB9140 #40AB5B
split-complementary
#405AAB #AB5B40 #8FAB40
monochromatic
#1F2B52 #2F437E #405AAB #637BC5 #90A1D5

Accessibility & contrast

On white

6.42
#405AAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#405AAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405AAB
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405AAB#FFFFFF#000000##FFFFFF
##405AAB1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3264AE
Deuteranopia (green-blind)
#1F5AA9
Tritanopia (blue-blind)
#006C7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #405aab;
/* rgb */ color: rgb(64, 90, 171);
/* oklch */ color: oklch(49.0% 0.133 267.9);
Tailwind
colors: {
  custom: {
    50: '#7f88c4',
    500: '#405aab',
    950: '#000000',
  },
}
SCSS
$custom: #405aab;
$custom-light: #7f88c4;
$custom-dark: #000000;
JSON
{
  "hex": "#405aab",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 171
  },
  "hsl": {
    "h": 225.421,
    "s": 45.532,
    "l": 46.078
  },
  "oklch": {
    "l": 0.48993,
    "c": 0.13284,
    "h": 267.9
  },
  "luminance": 0.11343
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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