#405E8A#405E8A

#405E8A is a mid, moderate blue. Relative luminance 0.109; OKLCH L 47.9% C 0.080 H 257.8°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#405E8A
RGBrgb(64, 94, 138)
HSLhsl(216, 37%, 40%)
HSVhsv(216, 54%, 54%)
CMYKcmyk(53.6%, 31.9%, 0%, 45.9%)
CIE-LABlab(39.46, 2.39, -27.79)
CIE-LCHlch(39.46, 27.90, 274.91°)
OKLaboklab(47.86% -0.0168 -0.0781)
OKLCHoklch(47.86% 0.08 257.8)
XYZxyz(10.7029, 10.9296, 25.5854)
Luminance0.1093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405E8A #8A6C40
analogous
#40838A #405E8A #47408A
triadic
#405E8A #8A405E #5E8A40
tetradic
#405E8A #8A4083 #8A6C40 #408A47
square
#405E8A #8A4083 #8A6C40 #408A47
split-complementary
#405E8A #8A4740 #838A40
monochromatic
#192536 #2D4260 #405E8A #567BB1 #809CC4

Accessibility & contrast

On white

6.59
#405E8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#405E8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405E8A
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405E8A#FFFFFF#000000##FFFFFF
##405E8A1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D618C
Deuteranopia (green-blind)
#445A89
Tritanopia (blue-blind)
#1A686E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #405e8a;
/* rgb */ color: rgb(64, 94, 138);
/* oklch */ color: oklch(47.9% 0.080 257.8);
Tailwind
colors: {
  custom: {
    50: '#7a8bac',
    500: '#405e8a',
    950: '#000000',
  },
}
SCSS
$custom: #405e8a;
$custom-light: #7a8bac;
$custom-dark: #000000;
JSON
{
  "hex": "#405e8a",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 138
  },
  "hsl": {
    "h": 215.676,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.47861,
    "c": 0.07994,
    "h": 257.8
  },
  "luminance": 0.1093
}

Semantic roles & 50–950 ramp

primary
#405E8A
secondary
#AF9877
accent
#9F5BCD
background
#F7F8FA
surface
#EEF0F4
border
#C9CBCE
text
#090C10
muted
#7B7D7F

Preview Lab

Preview with #405E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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