#405AA2#405AA2

#405AA2 is a mid, moderate blue. Relative luminance 0.110; OKLCH L 48.4% C 0.120 H 267.0°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#405AA2
RGBrgb(64, 90, 162)
HSLhsl(224, 43%, 44%)
HSVhsv(224, 60%, 64%)
CMYKcmyk(60.5%, 44.4%, 0%, 36.5%)
CIE-LABlab(39.60, 13.19, -41.99)
CIE-LCHlch(39.60, 44.02, 287.44°)
OKLaboklab(48.39% -0.0063 -0.1197)
OKLCHoklch(48.39% 0.12 267)
XYZxyz(12.2899, 11.0099, 35.6529)
Luminance0.1101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405AA2 #A28840
analogous
#408BA2 #405AA2 #5740A2
triadic
#405AA2 #A2405A #5AA240
tetradic
#405AA2 #A2408B #A28840 #40A257
square
#405AA2 #A2408B #A28840 #40A257
split-complementary
#405AA2 #A25740 #8BA240
monochromatic
#1D294A #2F4276 #405AA2 #5F79C0 #8B9ED1

Accessibility & contrast

On white

6.56
#405AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#405AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405AA2
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405AA2#FFFFFF#000000##FFFFFF
##405AA21.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3962A5
Deuteranopia (green-blind)
#2B59A0
Tritanopia (blue-blind)
#006A76
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #405aa2;
/* rgb */ color: rgb(64, 90, 162);
/* oklch */ color: oklch(48.4% 0.120 267.0);
Tailwind
colors: {
  custom: {
    50: '#7e88be',
    500: '#405aa2',
    950: '#000000',
  },
}
SCSS
$custom: #405aa2;
$custom-light: #7e88be;
$custom-dark: #000000;
JSON
{
  "hex": "#405aa2",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 162
  },
  "hsl": {
    "h": 224.082,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48392,
    "c": 0.11983,
    "h": 267
  },
  "luminance": 0.11011
}

Semantic roles & 50–950 ramp

primary
#405AA2
secondary
#BCAD82
accent
#B255D3
background
#F8F8FB
surface
#EFEFF7
border
#CACAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #405AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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