#405A8A#405A8A

#405A8A is a mid, moderate blue. Relative luminance 0.102; OKLCH L 46.9% C 0.084 H 262.0°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#405A8A
RGBrgb(64, 90, 138)
HSLhsl(219, 37%, 40%)
HSVhsv(219, 54%, 54%)
CMYKcmyk(53.6%, 34.8%, 0%, 45.9%)
CIE-LABlab(38.26, 4.92, -29.67)
CIE-LCHlch(38.26, 30.08, 279.41°)
OKLaboklab(46.93% -0.0118 -0.0836)
OKLCHoklch(46.93% 0.084 262)
XYZxyz(10.3564, 10.2365, 25.4699)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405A8A #8A7040
analogous
#407F8A #405A8A #4B408A
triadic
#405A8A #8A405A #5A8A40
tetradic
#405A8A #8A407F #8A7040 #408A4B
square
#405A8A #8A407F #8A7040 #408A4B
split-complementary
#405A8A #8A4B40 #7F8A40
monochromatic
#192336 #2D3F60 #405A8A #5676B1 #8098C4

Accessibility & contrast

On white

6.89
#405A8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#405A8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405A8A
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405A8A#FFFFFF#000000##FFFFFF
##405A8A1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475E8C
Deuteranopia (green-blind)
#3E5789
Tritanopia (blue-blind)
#1B646B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #405a8a;
/* rgb */ color: rgb(64, 90, 138);
/* oklch */ color: oklch(46.9% 0.084 262.0);
Tailwind
colors: {
  custom: {
    50: '#7a88ac',
    500: '#405a8a',
    950: '#000000',
  },
}
SCSS
$custom: #405a8a;
$custom-light: #7a88ac;
$custom-dark: #000000;
JSON
{
  "hex": "#405a8a",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 138
  },
  "hsl": {
    "h": 218.919,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46927,
    "c": 0.08446,
    "h": 262
  },
  "luminance": 0.10237
}

Semantic roles & 50–950 ramp

primary
#405A8A
secondary
#AF9B77
accent
#A55BCD
background
#F7F8FA
surface
#EEEFF4
border
#C9CACE
text
#090B10
muted
#7B7C7F

Preview Lab

Preview with #405A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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