#405EA4#405EA4

#405EA4 is a mid, moderate blue. Relative luminance 0.118; OKLCH L 49.4% C 0.118 H 264.9°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#405EA4
RGBrgb(64, 94, 164)
HSLhsl(222, 44%, 45%)
HSVhsv(222, 61%, 64%)
CMYKcmyk(61%, 42.7%, 0%, 35.7%)
CIE-LABlab(40.86, 11.32, -41.18)
CIE-LCHlch(40.86, 42.70, 285.38°)
OKLaboklab(49.4% -0.0104 -0.1172)
OKLCHoklch(49.4% 0.118 264.9)
XYZxyz(12.8156, 11.7746, 36.7121)
Luminance0.1178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405EA4 #A48640
analogous
#4090A4 #405EA4 #5440A4
triadic
#405EA4 #A4405E #5EA440
tetradic
#405EA4 #A44090 #A48640 #40A454
square
#405EA4 #A44090 #A48640 #40A454
split-complementary
#405EA4 #A45440 #90A440
monochromatic
#1E2C4C #2F4578 #405EA4 #607DC1 #8CA1D2

Accessibility & contrast

On white

6.26
#405EA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #405EA4
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405EA4#FFFFFF#000000##FFFFFF
##405EA41.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F65A7
Deuteranopia (green-blind)
#315CA3
Tritanopia (blue-blind)
#006E79
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #405ea4;
/* rgb */ color: rgb(64, 94, 164);
/* oklch */ color: oklch(49.4% 0.118 264.9);
Tailwind
colors: {
  custom: {
    50: '#7e8bbf',
    500: '#405ea4',
    950: '#000000',
  },
}
SCSS
$custom: #405ea4;
$custom-light: #7e8bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#405ea4",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 164
  },
  "hsl": {
    "h": 222,
    "s": 43.86,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49398,
    "c": 0.11767,
    "h": 264.9
  },
  "luminance": 0.11776
}

Semantic roles & 50–950 ramp

primary
#405EA4
secondary
#BDAC83
accent
#AD54D4
background
#F8F8FB
surface
#EFF0F7
border
#CACBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #405EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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