#405FAD#405FAD

#405FAD is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.2% C 0.129 H 265.7°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#405FAD
RGBrgb(64, 95, 173)
HSLhsl(223, 46%, 46%)
HSVhsv(223, 63%, 68%)
CMYKcmyk(63%, 45.1%, 0%, 32.2%)
CIE-LABlab(41.67, 13.86, -45.19)
CIE-LCHlch(41.67, 47.27, 287.05°)
OKLaboklab(50.2% -0.0098 -0.129)
OKLCHoklch(50.2% 0.129 265.7)
XYZxyz(13.7468, 12.2903, 41.1749)
Luminance0.1229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FAD #AD8E40
analogous
#4096AD #405FAD #5840AD
triadic
#405FAD #AD405F #5FAD40
tetradic
#405FAD #AD4096 #AD8E40 #40AD58
square
#405FAD #AD4096 #AD8E40 #40AD58
split-complementary
#405FAD #AD5840 #96AD40
monochromatic
#1F2E54 #2F4680 #405FAD #6480C6 #91A5D6

Accessibility & contrast

On white

6.07
#405FAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#405FAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FAD
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FAD#FFFFFF#000000##FFFFFF
##405FAD1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A68B0
Deuteranopia (green-blind)
#295EAB
Tritanopia (blue-blind)
#00717D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405fad;
/* rgb */ color: rgb(64, 95, 173);
/* oklch */ color: oklch(50.2% 0.129 265.7);
Tailwind
colors: {
  custom: {
    50: '#7f8cc6',
    500: '#405fad',
    950: '#000000',
  },
}
SCSS
$custom: #405fad;
$custom-light: #7f8cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#405fad",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 173
  },
  "hsl": {
    "h": 222.936,
    "s": 45.992,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50199,
    "c": 0.12935,
    "h": 265.7
  },
  "luminance": 0.12292
}

Semantic roles & 50–950 ramp

primary
#405FAD
secondary
#C2B187
accent
#B052D6
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #405FAD

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

Preview Lab → · Contrast checker → · Palette generator →

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