#405C8A#405C8A

#405C8A is a mid, moderate blue. Relative luminance 0.106; OKLCH L 47.4% C 0.082 H 260.0°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#405C8A
RGBrgb(64, 92, 138)
HSLhsl(217, 37%, 40%)
HSVhsv(217, 54%, 54%)
CMYKcmyk(53.6%, 33.3%, 0%, 45.9%)
CIE-LABlab(38.86, 3.65, -28.73)
CIE-LCHlch(38.86, 28.97, 277.24°)
OKLaboklab(47.39% -0.0143 -0.0809)
OKLCHoklch(47.39% 0.082 260)
XYZxyz(10.5274, 10.5785, 25.5269)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405C8A #8A6E40
analogous
#40818A #405C8A #49408A
triadic
#405C8A #8A405C #5C8A40
tetradic
#405C8A #8A4081 #8A6E40 #408A49
square
#405C8A #8A4081 #8A6E40 #408A49
split-complementary
#405C8A #8A4940 #818A40
monochromatic
#192436 #2D4060 #405C8A #5679B1 #809AC4

Accessibility & contrast

On white

6.74
#405C8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#405C8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405C8A
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405C8A#FFFFFF#000000##FFFFFF
##405C8A1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A5F8C
Deuteranopia (green-blind)
#415889
Tritanopia (blue-blind)
#1B666D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #405c8a;
/* rgb */ color: rgb(64, 92, 138);
/* oklch */ color: oklch(47.4% 0.082 260.0);
Tailwind
colors: {
  custom: {
    50: '#7a89ac',
    500: '#405c8a',
    950: '#000000',
  },
}
SCSS
$custom: #405c8a;
$custom-light: #7a89ac;
$custom-dark: #000000;
JSON
{
  "hex": "#405c8a",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 138
  },
  "hsl": {
    "h": 217.297,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.47393,
    "c": 0.08215,
    "h": 260
  },
  "luminance": 0.10579
}

Semantic roles & 50–950 ramp

primary
#405C8A
secondary
#AF9A77
accent
#A25BCD
background
#F7F8FA
surface
#EEF0F4
border
#C9CBCE
text
#090B10
muted
#7B7C7F

Preview Lab

Preview with #405C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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