#405C8F#405C8F

#405C8F is a mid, moderate blue. Relative luminance 0.107; OKLCH L 47.7% C 0.089 H 261.7°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#405C8F
RGBrgb(64, 92, 143)
HSLhsl(219, 38%, 41%)
HSVhsv(219, 55%, 56%)
CMYKcmyk(55.2%, 35.7%, 0%, 43.9%)
CIE-LABlab(39.12, 5.33, -31.36)
CIE-LCHlch(39.12, 31.81, 279.65°)
OKLaboklab(47.68% -0.0129 -0.0885)
OKLCHoklch(47.68% 0.089 261.7)
XYZxyz(10.8977, 10.7266, 27.4775)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405C8F #8F7340
analogous
#40838F #405C8F #4B408F
triadic
#405C8F #8F405C #5C8F40
tetradic
#405C8F #8F4083 #8F7340 #408F4B
square
#405C8F #8F4083 #8F7340 #408F4B
split-complementary
#405C8F #8F4B40 #838F40
monochromatic
#1A263A #2D4165 #405C8F #5879B4 #829BC7

Accessibility & contrast

On white

6.68
#405C8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#405C8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405C8F
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405C8F#FFFFFF#000000##FFFFFF
##405C8F1.006.683.156.68
#FFFFFF6.681.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#486091
Deuteranopia (green-blind)
#3E598E
Tritanopia (blue-blind)
#14676F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #405c8f;
/* rgb */ color: rgb(64, 92, 143);
/* oklch */ color: oklch(47.7% 0.089 261.7);
Tailwind
colors: {
  custom: {
    50: '#7b89b0',
    500: '#405c8f',
    950: '#000000',
  },
}
SCSS
$custom: #405c8f;
$custom-light: #7b89b0;
$custom-dark: #000000;
JSON
{
  "hex": "#405c8f",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 143
  },
  "hsl": {
    "h": 218.734,
    "s": 38.164,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47675,
    "c": 0.08946,
    "h": 261.7
  },
  "luminance": 0.10727
}

Semantic roles & 50–950 ramp

primary
#405C8F
secondary
#B29E79
accent
#A55ACE
background
#F7F8FA
surface
#EEF0F4
border
#C9CBCE
text
#0A0B10
muted
#7C7C7F

Preview Lab

Preview with #405C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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