#405D8D#405D8D

#405D8D is a mid, moderate blue. Relative luminance 0.108; OKLCH L 47.8% C 0.085 H 260.1°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#405D8D
RGBrgb(64, 93, 141)
HSLhsl(217, 38%, 40%)
HSVhsv(217, 55%, 55%)
CMYKcmyk(54.6%, 34%, 0%, 44.7%)
CIE-LABlab(39.31, 4.03, -29.84)
CIE-LCHlch(39.31, 30.11, 277.68°)
OKLaboklab(47.79% -0.0147 -0.0841)
OKLCHoklch(47.79% 0.085 260.1)
XYZxyz(10.8348, 10.8410, 26.7157)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405D8D #8D7040
analogous
#40838D #405D8D #4A408D
triadic
#405D8D #8D405D #5D8D40
tetradic
#405D8D #8D4083 #8D7040 #408D4A
square
#405D8D #8D4083 #8D7040 #408D4A
split-complementary
#405D8D #8D4A40 #838D40
monochromatic
#1A2539 #2D4163 #405D8D #577AB3 #819BC6

Accessibility & contrast

On white

6.63
#405D8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#405D8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405D8D
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405D8D#FFFFFF#000000##FFFFFF
##405D8D1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A618F
Deuteranopia (green-blind)
#41598C
Tritanopia (blue-blind)
#17686E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #405d8d;
/* rgb */ color: rgb(64, 93, 141);
/* oklch */ color: oklch(47.8% 0.085 260.1);
Tailwind
colors: {
  custom: {
    50: '#7a8aae',
    500: '#405d8d',
    950: '#000000',
  },
}
SCSS
$custom: #405d8d;
$custom-light: #7a8aae;
$custom-dark: #000000;
JSON
{
  "hex": "#405d8d",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 141
  },
  "hsl": {
    "h": 217.403,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47793,
    "c": 0.08539,
    "h": 260.1
  },
  "luminance": 0.10842
}

Semantic roles & 50–950 ramp

primary
#405D8D
secondary
#B09B78
accent
#A25ACE
background
#F7F8FA
surface
#EEF0F4
border
#C9CBCE
text
#0A0B10
muted
#7C7C7F

Preview Lab

Preview with #405D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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