#405C8B#405C8B

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

Color values

HEX#405C8B
RGBrgb(64, 92, 139)
HSLhsl(218, 37%, 40%)
HSVhsv(218, 54%, 55%)
CMYKcmyk(54%, 33.8%, 0%, 45.5%)
CIE-LABlab(38.91, 3.99, -29.26)
CIE-LCHlch(38.91, 29.53, 277.76°)
OKLaboklab(47.45% -0.014 -0.0824)
OKLCHoklch(47.45% 0.084 260.3)
XYZxyz(10.6001, 10.6076, 25.9100)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405C8B #8B6F40
analogous
#40828B #405C8B #4A408B
triadic
#405C8B #8B405C #5C8B40
tetradic
#405C8B #8B4082 #8B6F40 #408B4A
square
#405C8B #8B4082 #8B6F40 #408B4A
split-complementary
#405C8B #8B4A40 #828B40
monochromatic
#192537 #2D4061 #405C8B #5779B2 #819AC5

Accessibility & contrast

On white

6.73
#405C8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #405C8B
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405C8B#FFFFFF#000000##FFFFFF
##405C8B1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A5F8D
Deuteranopia (green-blind)
#41588A
Tritanopia (blue-blind)
#19666D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #405c8b;
/* rgb */ color: rgb(64, 92, 139);
/* oklch */ color: oklch(47.4% 0.084 260.3);
Tailwind
colors: {
  custom: {
    50: '#7a89ad',
    500: '#405c8b',
    950: '#000000',
  },
}
SCSS
$custom: #405c8b;
$custom-light: #7a89ad;
$custom-dark: #000000;
JSON
{
  "hex": "#405c8b",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 139
  },
  "hsl": {
    "h": 217.6,
    "s": 36.946,
    "l": 39.804
  },
  "oklch": {
    "l": 0.47448,
    "c": 0.08361,
    "h": 260.3
  },
  "luminance": 0.10608
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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