#405EA5#405EA5

#405EA5 is a mid, moderate blue. Relative luminance 0.118; OKLCH L 49.5% C 0.119 H 265.1°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#405EA5
RGBrgb(64, 94, 165)
HSLhsl(222, 44%, 45%)
HSVhsv(222, 61%, 65%)
CMYKcmyk(61.2%, 43%, 0%, 35.3%)
CIE-LABlab(40.91, 11.68, -41.68)
CIE-LCHlch(40.91, 43.28, 285.65°)
OKLaboklab(49.46% -0.0102 -0.1187)
OKLCHoklch(49.46% 0.119 265.1)
XYZxyz(12.9063, 11.8109, 37.1896)
Luminance0.1181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405EA5 #A58740
analogous
#4091A5 #405EA5 #5440A5
triadic
#405EA5 #A5405E #5EA540
tetradic
#405EA5 #A54091 #A58740 #40A554
square
#405EA5 #A54091 #A58740 #40A554
split-complementary
#405EA5 #A55440 #91A540
monochromatic
#1E2C4D #2F4579 #405EA5 #617DC2 #8DA2D3

Accessibility & contrast

On white

6.25
#405EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#405EA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405EA5
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405EA5#FFFFFF#000000##FFFFFF
##405EA51.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E65A8
Deuteranopia (green-blind)
#305CA4
Tritanopia (blue-blind)
#006E79
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #405ea5;
/* rgb */ color: rgb(64, 94, 165);
/* oklch */ color: oklch(49.5% 0.119 265.1);
Tailwind
colors: {
  custom: {
    50: '#7e8bc0',
    500: '#405ea5',
    950: '#000000',
  },
}
SCSS
$custom: #405ea5;
$custom-light: #7e8bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#405ea5",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 165
  },
  "hsl": {
    "h": 222.178,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49461,
    "c": 0.11912,
    "h": 265.1
  },
  "luminance": 0.11812
}

Semantic roles & 50–950 ramp

primary
#405EA5
secondary
#BEAC83
accent
#AE54D4
background
#F8F8FB
surface
#EFF0F7
border
#CACBD0
text
#0B0B12
muted
#7C7C81

Preview Lab

Preview with #405EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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