#405EA1#405EA1

#405EA1 is a mid, moderate blue. Relative luminance 0.117; OKLCH L 49.2% C 0.113 H 264.4°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#405EA1
RGBrgb(64, 94, 161)
HSLhsl(221, 43%, 44%)
HSVhsv(221, 60%, 63%)
CMYKcmyk(60.2%, 41.6%, 0%, 36.9%)
CIE-LABlab(40.68, 10.27, -39.67)
CIE-LCHlch(40.68, 40.98, 284.52°)
OKLaboklab(49.21% -0.011 -0.1128)
OKLCHoklch(49.21% 0.113 264.4)
XYZxyz(12.5479, 11.6676, 35.3021)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405EA1 #A18340
analogous
#408FA1 #405EA1 #5340A1
triadic
#405EA1 #A1405E #5EA140
tetradic
#405EA1 #A1408F #A18340 #40A153
square
#405EA1 #A1408F #A18340 #40A153
split-complementary
#405EA1 #A15340 #8FA140
monochromatic
#1D2B49 #2F4475 #405EA1 #5F7DBF #8BA0D1

Accessibility & contrast

On white

6.30
#405EA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#405EA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405EA1
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405EA1#FFFFFF#000000##FFFFFF
##405EA11.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4165A4
Deuteranopia (green-blind)
#345CA0
Tritanopia (blue-blind)
#006D77
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #405ea1;
/* rgb */ color: rgb(64, 94, 161);
/* oklch */ color: oklch(49.2% 0.113 264.4);
Tailwind
colors: {
  custom: {
    50: '#7d8bbd',
    500: '#405ea1',
    950: '#000000',
  },
}
SCSS
$custom: #405ea1;
$custom-light: #7d8bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#405ea1",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 161
  },
  "hsl": {
    "h": 221.443,
    "s": 43.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49208,
    "c": 0.11332,
    "h": 264.4
  },
  "luminance": 0.11669
}

Semantic roles & 50–950 ramp

primary
#405EA1
secondary
#BCAA81
accent
#AC55D3
background
#F8F8FB
surface
#EFF0F6
border
#CACBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #405EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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