#405BA2#405BA2

#405BA2 is a mid, moderate blue. Relative luminance 0.112; OKLCH L 48.6% C 0.119 H 266.4°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#405BA2
RGBrgb(64, 91, 162)
HSLhsl(223, 43%, 44%)
HSVhsv(223, 60%, 64%)
CMYKcmyk(60.5%, 43.8%, 0%, 36.5%)
CIE-LABlab(39.88, 12.55, -41.54)
CIE-LCHlch(39.88, 43.39, 286.81°)
OKLaboklab(48.61% -0.0074 -0.1183)
OKLCHoklch(48.61% 0.119 266.4)
XYZxyz(12.3748, 11.1798, 35.6812)
Luminance0.1118 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BA2 #A28740
analogous
#408CA2 #405BA2 #5640A2
triadic
#405BA2 #A2405B #5BA240
tetradic
#405BA2 #A2408C #A28740 #40A256
square
#405BA2 #A2408C #A28740 #40A256
split-complementary
#405BA2 #A25640 #8CA240
monochromatic
#1D2A4A #2F4276 #405BA2 #5F7AC0 #8B9ED1

Accessibility & contrast

On white

6.49
#405BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#405BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BA2
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BA2#FFFFFF#000000##FFFFFF
##405BA21.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B63A5
Deuteranopia (green-blind)
#2D5AA0
Tritanopia (blue-blind)
#006B76
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #405ba2;
/* rgb */ color: rgb(64, 91, 162);
/* oklch */ color: oklch(48.6% 0.119 266.4);
Tailwind
colors: {
  custom: {
    50: '#7d89be',
    500: '#405ba2',
    950: '#000000',
  },
}
SCSS
$custom: #405ba2;
$custom-light: #7d89be;
$custom-dark: #000000;
JSON
{
  "hex": "#405ba2",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 162
  },
  "hsl": {
    "h": 223.469,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4861,
    "c": 0.11854,
    "h": 266.4
  },
  "luminance": 0.11181
}

Semantic roles & 50–950 ramp

primary
#405BA2
secondary
#BCAC82
accent
#B055D3
background
#F8F8FB
surface
#EFEFF7
border
#CACAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #405BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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