#405FA4#405FA4

#405FA4 is a mid, moderate blue. Relative luminance 0.120; OKLCH L 49.6% C 0.116 H 264.3°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#405FA4
RGBrgb(64, 95, 164)
HSLhsl(221, 44%, 45%)
HSVhsv(221, 61%, 64%)
CMYKcmyk(61%, 42.1%, 0%, 35.7%)
CIE-LABlab(41.14, 10.68, -40.72)
CIE-LCHlch(41.14, 42.10, 284.70°)
OKLaboklab(49.62% -0.0115 -0.1159)
OKLCHoklch(49.62% 0.116 264.3)
XYZxyz(12.9051, 11.9536, 36.7420)
Luminance0.1196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FA4 #A48540
analogous
#4091A4 #405FA4 #5340A4
triadic
#405FA4 #A4405F #5FA440
tetradic
#405FA4 #A44091 #A48540 #40A453
square
#405FA4 #A44091 #A48540 #40A453
split-complementary
#405FA4 #A45340 #91A440
monochromatic
#1E2C4C #2F4678 #405FA4 #607EC1 #8CA2D2

Accessibility & contrast

On white

6.19
#405FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#405FA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FA4
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FA4#FFFFFF#000000##FFFFFF
##405FA41.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4166A7
Deuteranopia (green-blind)
#335DA3
Tritanopia (blue-blind)
#006E79
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #405fa4;
/* rgb */ color: rgb(64, 95, 164);
/* oklch */ color: oklch(49.6% 0.116 264.3);
Tailwind
colors: {
  custom: {
    50: '#7e8cbf',
    500: '#405fa4',
    950: '#000000',
  },
}
SCSS
$custom: #405fa4;
$custom-light: #7e8cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#405fa4",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 164
  },
  "hsl": {
    "h": 221.4,
    "s": 43.86,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49618,
    "c": 0.11643,
    "h": 264.3
  },
  "luminance": 0.11955
}

Semantic roles & 50–950 ramp

primary
#405FA4
secondary
#BDAB83
accent
#AC54D4
background
#F8F8FB
surface
#EFF0F7
border
#CACBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #405FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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