#405E8D#405E8D

#405E8D is a mid, moderate blue. Relative luminance 0.110; OKLCH L 48.0% C 0.084 H 259.1°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#405E8D
RGBrgb(64, 94, 141)
HSLhsl(217, 38%, 40%)
HSVhsv(217, 55%, 55%)
CMYKcmyk(54.6%, 33.3%, 0%, 44.7%)
CIE-LABlab(39.61, 3.39, -29.37)
CIE-LCHlch(39.61, 29.57, 276.59°)
OKLaboklab(48.03% -0.0159 -0.0827)
OKLCHoklch(48.03% 0.084 259.1)
XYZxyz(10.9231, 11.0177, 26.7452)
Luminance0.1102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405E8D #8D6F40
analogous
#40858D #405E8D #48408D
triadic
#405E8D #8D405E #5E8D40
tetradic
#405E8D #8D4085 #8D6F40 #408D48
square
#405E8D #8D4085 #8D6F40 #408D48
split-complementary
#405E8D #8D4840 #858D40
monochromatic
#1A2639 #2D4263 #405E8D #577BB3 #819CC6

Accessibility & contrast

On white

6.56
#405E8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#405E8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405E8D
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405E8D#FFFFFF#000000##FFFFFF
##405E8D1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B618F
Deuteranopia (green-blind)
#425A8C
Tritanopia (blue-blind)
#16686F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #405e8d;
/* rgb */ color: rgb(64, 94, 141);
/* oklch */ color: oklch(48.0% 0.084 259.1);
Tailwind
colors: {
  custom: {
    50: '#7a8bae',
    500: '#405e8d',
    950: '#000000',
  },
}
SCSS
$custom: #405e8d;
$custom-light: #7a8bae;
$custom-dark: #000000;
JSON
{
  "hex": "#405e8d",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 141
  },
  "hsl": {
    "h": 216.623,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.48026,
    "c": 0.08426,
    "h": 259.1
  },
  "luminance": 0.11018
}

Semantic roles & 50–950 ramp

primary
#405E8D
secondary
#B09B78
accent
#A15ACE
background
#F7F8FA
surface
#EEF0F4
border
#C9CBCE
text
#0A0C10
muted
#7C7D7F

Preview Lab

Preview with #405E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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