#405C87#405C87

#405C87 is a mid, moderate blue. Relative luminance 0.105; OKLCH L 47.2% C 0.078 H 258.7°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#405C87
RGBrgb(64, 92, 135)
HSLhsl(216, 36%, 39%)
HSVhsv(216, 53%, 53%)
CMYKcmyk(52.6%, 31.9%, 0%, 47.1%)
CIE-LABlab(38.71, 2.65, -27.15)
CIE-LCHlch(38.71, 27.28, 275.58°)
OKLaboklab(47.23% -0.0152 -0.0763)
OKLCHoklch(47.23% 0.078 258.7)
XYZxyz(10.3132, 10.4928, 24.3988)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405C87 #876B40
analogous
#408087 #405C87 #484087
triadic
#405C87 #87405C #5C8740
tetradic
#405C87 #874080 #876B40 #408748
square
#405C87 #874080 #876B40 #408748
split-complementary
#405C87 #874840 #808740
monochromatic
#192334 #2C405D #405C87 #5679AF #7F9AC2

Accessibility & contrast

On white

6.78
#405C87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#405C87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405C87
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405C87#FFFFFF#000000##FFFFFF
##405C871.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B5F89
Deuteranopia (green-blind)
#435886
Tritanopia (blue-blind)
#1E656B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #405c87;
/* rgb */ color: rgb(64, 92, 135);
/* oklch */ color: oklch(47.2% 0.078 258.7);
Tailwind
colors: {
  custom: {
    50: '#7989aa',
    500: '#405c87',
    950: '#000000',
  },
}
SCSS
$custom: #405c87;
$custom-light: #7989aa;
$custom-dark: #000000;
JSON
{
  "hex": "#405c87",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 135
  },
  "hsl": {
    "h": 216.338,
    "s": 35.678,
    "l": 39.02
  },
  "oklch": {
    "l": 0.47228,
    "c": 0.07779,
    "h": 258.7
  },
  "luminance": 0.10494
}

Semantic roles & 50–950 ramp

primary
#405C87
secondary
#AD9776
accent
#A05CCC
background
#F7F8FA
surface
#EEF0F4
border
#C9CBCE
text
#090B10
muted
#7B7C7F

Preview Lab

Preview with #405C87

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

Preview Lab → · Contrast checker → · Palette generator →

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