#405EA2#405EA2

#405EA2 is a mid, moderate blue. Relative luminance 0.117; OKLCH L 49.3% C 0.115 H 264.6°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#405EA2
RGBrgb(64, 94, 162)
HSLhsl(222, 43%, 44%)
HSVhsv(222, 60%, 64%)
CMYKcmyk(60.5%, 42%, 0%, 36.5%)
CIE-LABlab(40.74, 10.62, -40.17)
CIE-LCHlch(40.74, 41.55, 284.81°)
OKLaboklab(49.27% -0.0108 -0.1143)
OKLCHoklch(49.27% 0.115 264.6)
XYZxyz(12.6364, 11.7030, 35.7684)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405EA2 #A28440
analogous
#408FA2 #405EA2 #5340A2
triadic
#405EA2 #A2405E #5EA240
tetradic
#405EA2 #A2408F #A28440 #40A253
square
#405EA2 #A2408F #A28440 #40A253
split-complementary
#405EA2 #A25340 #8FA240
monochromatic
#1D2B4A #2F4576 #405EA2 #5F7DC0 #8BA1D1

Accessibility & contrast

On white

6.29
#405EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#405EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405EA2
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405EA2#FFFFFF#000000##FFFFFF
##405EA21.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4065A5
Deuteranopia (green-blind)
#335CA1
Tritanopia (blue-blind)
#006D78
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #405ea2;
/* rgb */ color: rgb(64, 94, 162);
/* oklch */ color: oklch(49.3% 0.115 264.6);
Tailwind
colors: {
  custom: {
    50: '#7d8bbe',
    500: '#405ea2',
    950: '#000000',
  },
}
SCSS
$custom: #405ea2;
$custom-light: #7d8bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#405ea2",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 162
  },
  "hsl": {
    "h": 221.633,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49271,
    "c": 0.11477,
    "h": 264.6
  },
  "luminance": 0.11704
}

Semantic roles & 50–950 ramp

primary
#405EA2
secondary
#BCAA82
accent
#AC55D3
background
#F8F8FB
surface
#EFF0F7
border
#CACBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #405EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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