#405C8D#405C8D

#405C8D is a mid, moderate blue. Relative luminance 0.107; OKLCH L 47.6% C 0.087 H 261.0°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#405C8D
RGBrgb(64, 92, 141)
HSLhsl(218, 38%, 40%)
HSVhsv(218, 55%, 55%)
CMYKcmyk(54.6%, 34.8%, 0%, 44.7%)
CIE-LABlab(39.01, 4.66, -30.31)
CIE-LCHlch(39.01, 30.67, 278.74°)
OKLaboklab(47.56% -0.0135 -0.0855)
OKLCHoklch(47.56% 0.087 261)
XYZxyz(10.7476, 10.6666, 26.6866)
Luminance0.1067 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405C8D #8D7140
analogous
#40828D #405C8D #4B408D
triadic
#405C8D #8D405C #5C8D40
tetradic
#405C8D #8D4082 #8D7140 #408D4B
square
#405C8D #8D4082 #8D7140 #408D4B
split-complementary
#405C8D #8D4B40 #828D40
monochromatic
#1A2539 #2D4163 #405C8D #5779B3 #819AC6

Accessibility & contrast

On white

6.70
#405C8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#405C8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405C8D
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405C8D#FFFFFF#000000##FFFFFF
##405C8D1.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49608F
Deuteranopia (green-blind)
#3F598C
Tritanopia (blue-blind)
#17676E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #405c8d;
/* rgb */ color: rgb(64, 92, 141);
/* oklch */ color: oklch(47.6% 0.087 261.0);
Tailwind
colors: {
  custom: {
    50: '#7a89ae',
    500: '#405c8d',
    950: '#000000',
  },
}
SCSS
$custom: #405c8d;
$custom-light: #7a89ae;
$custom-dark: #000000;
JSON
{
  "hex": "#405c8d",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 141
  },
  "hsl": {
    "h": 218.182,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47561,
    "c": 0.08653,
    "h": 261
  },
  "luminance": 0.10667
}

Semantic roles & 50–950 ramp

primary
#405C8D
secondary
#B09C78
accent
#A45ACE
background
#F7F8FA
surface
#EEF0F4
border
#C9CBCE
text
#0A0B10
muted
#7C7C7F

Preview Lab

Preview with #405C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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