#405A8D#405A8D

#405A8D is a mid, moderate blue. Relative luminance 0.103; OKLCH L 47.1% C 0.089 H 262.9°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#405A8D
RGBrgb(64, 90, 141)
HSLhsl(220, 38%, 40%)
HSVhsv(220, 55%, 55%)
CMYKcmyk(54.6%, 36.2%, 0%, 44.7%)
CIE-LABlab(38.42, 5.93, -31.25)
CIE-LCHlch(38.42, 31.81, 280.75°)
OKLaboklab(47.1% -0.011 -0.0882)
OKLCHoklch(47.1% 0.089 262.9)
XYZxyz(10.5766, 10.3246, 26.6296)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405A8D #8D7340
analogous
#40818D #405A8D #4C408D
triadic
#405A8D #8D405A #5A8D40
tetradic
#405A8D #8D4081 #8D7340 #408D4C
square
#405A8D #8D4081 #8D7340 #408D4C
split-complementary
#405A8D #8D4C40 #818D40
monochromatic
#1A2439 #2D3F63 #405A8D #5776B3 #8199C6

Accessibility & contrast

On white

6.85
#405A8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#405A8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405A8D
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405A8D#FFFFFF#000000##FFFFFF
##405A8D1.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#465E8F
Deuteranopia (green-blind)
#3D578C
Tritanopia (blue-blind)
#18656D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #405a8d;
/* rgb */ color: rgb(64, 90, 141);
/* oklch */ color: oklch(47.1% 0.089 262.9);
Tailwind
colors: {
  custom: {
    50: '#7a88ae',
    500: '#405a8d',
    950: '#000000',
  },
}
SCSS
$custom: #405a8d;
$custom-light: #7a88ae;
$custom-dark: #000000;
JSON
{
  "hex": "#405a8d",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 141
  },
  "hsl": {
    "h": 219.74,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47099,
    "c": 0.0889,
    "h": 262.9
  },
  "luminance": 0.10325
}

Semantic roles & 50–950 ramp

primary
#405A8D
secondary
#B09D78
accent
#A75ACE
background
#F7F8FA
surface
#EEEFF4
border
#C9CACE
text
#0A0B10
muted
#7C7C7F

Preview Lab

Preview with #405A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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