#405AAD#405AAD

#405AAD is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.1% C 0.136 H 268.1°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#405AAD
RGBrgb(64, 90, 173)
HSLhsl(226, 46%, 46%)
HSVhsv(226, 63%, 68%)
CMYKcmyk(63%, 48%, 0%, 32.2%)
CIE-LABlab(40.28, 17.08, -47.43)
CIE-LCHlch(40.28, 50.41, 289.81°)
OKLaboklab(49.13% -0.0046 -0.1356)
OKLCHoklch(49.13% 0.136 268.1)
XYZxyz(13.3108, 11.4183, 41.0296)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405AAD #AD9340
analogous
#4091AD #405AAD #5D40AD
triadic
#405AAD #AD405A #5AAD40
tetradic
#405AAD #AD4091 #AD9340 #40AD5D
square
#405AAD #AD4091 #AD9340 #40AD5D
split-complementary
#405AAD #AD5D40 #91AD40
monochromatic
#1F2C54 #2F4380 #405AAD #647CC6 #91A2D6

Accessibility & contrast

On white

6.40
#405AAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#405AAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405AAD
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405AAD#FFFFFF#000000##FFFFFF
##405AAD1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3064B0
Deuteranopia (green-blind)
#1C5AAB
Tritanopia (blue-blind)
#006D7B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #405aad;
/* rgb */ color: rgb(64, 90, 173);
/* oklch */ color: oklch(49.1% 0.136 268.1);
Tailwind
colors: {
  custom: {
    50: '#7f88c6',
    500: '#405aad',
    950: '#000000',
  },
}
SCSS
$custom: #405aad;
$custom-light: #7f88c6;
$custom-dark: #000000;
JSON
{
  "hex": "#405aad",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 173
  },
  "hsl": {
    "h": 225.688,
    "s": 45.992,
    "l": 46.471
  },
  "oklch": {
    "l": 0.49131,
    "c": 0.13571,
    "h": 268.1
  },
  "luminance": 0.11419
}

Semantic roles & 50–950 ramp

primary
#405AAD
secondary
#C2B487
accent
#B652D6
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405AAD

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

Preview Lab → · Contrast checker → · Palette generator →

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