#405D8A#405D8A

#405D8A is a mid, moderate blue. Relative luminance 0.108; OKLCH L 47.6% C 0.081 H 258.9°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#405D8A
RGBrgb(64, 93, 138)
HSLhsl(216, 37%, 40%)
HSVhsv(216, 54%, 54%)
CMYKcmyk(53.6%, 32.6%, 0%, 45.9%)
CIE-LABlab(39.16, 3.02, -28.26)
CIE-LCHlch(39.16, 28.42, 276.10°)
OKLaboklab(47.63% -0.0156 -0.0795)
OKLCHoklch(47.63% 0.081 258.9)
XYZxyz(10.6146, 10.7529, 25.5560)
Luminance0.1075 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405D8A #8A6D40
analogous
#40828A #405D8A #48408A
triadic
#405D8A #8A405D #5D8A40
tetradic
#405D8A #8A4082 #8A6D40 #408A48
square
#405D8A #8A4082 #8A6D40 #408A48
split-complementary
#405D8A #8A4840 #828A40
monochromatic
#192536 #2D4160 #405D8A #567AB1 #809BC4

Accessibility & contrast

On white

6.66
#405D8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#405D8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405D8A
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405D8A#FFFFFF#000000##FFFFFF
##405D8A1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B608C
Deuteranopia (green-blind)
#425989
Tritanopia (blue-blind)
#1A676D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #405d8a;
/* rgb */ color: rgb(64, 93, 138);
/* oklch */ color: oklch(47.6% 0.081 258.9);
Tailwind
colors: {
  custom: {
    50: '#7a8aac',
    500: '#405d8a',
    950: '#000000',
  },
}
SCSS
$custom: #405d8a;
$custom-light: #7a8aac;
$custom-dark: #000000;
JSON
{
  "hex": "#405d8a",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 138
  },
  "hsl": {
    "h": 216.486,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.47627,
    "c": 0.08103,
    "h": 258.9
  },
  "luminance": 0.10754
}

Semantic roles & 50–950 ramp

primary
#405D8A
secondary
#AF9977
accent
#A05BCD
background
#F7F8FA
surface
#EEF0F4
border
#C9CBCE
text
#090B10
muted
#7B7C7F

Preview Lab

Preview with #405D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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