#405CA5#405CA5

#405CA5 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.0% C 0.122 H 266.2°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#405CA5
RGBrgb(64, 92, 165)
HSLhsl(223, 44%, 45%)
HSVhsv(223, 61%, 65%)
CMYKcmyk(61.2%, 44.2%, 0%, 35.3%)
CIE-LABlab(40.34, 12.96, -42.58)
CIE-LCHlch(40.34, 44.51, 286.93°)
OKLaboklab(49.02% -0.008 -0.1214)
OKLCHoklch(49.02% 0.122 266.2)
XYZxyz(12.7307, 11.4598, 37.1311)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CA5 #A58940
analogous
#408FA5 #405CA5 #5640A5
triadic
#405CA5 #A5405C #5CA540
tetradic
#405CA5 #A5408F #A58940 #40A556
square
#405CA5 #A5408F #A58940 #40A556
split-complementary
#405CA5 #A55640 #8FA540
monochromatic
#1E2B4D #2F4379 #405CA5 #617CC2 #8DA0D3

Accessibility & contrast

On white

6.38
#405CA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#405CA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CA5
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CA5#FFFFFF#000000##FFFFFF
##405CA51.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B64A8
Deuteranopia (green-blind)
#2C5BA3
Tritanopia (blue-blind)
#006C78
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #405ca5;
/* rgb */ color: rgb(64, 92, 165);
/* oklch */ color: oklch(49.0% 0.122 266.2);
Tailwind
colors: {
  custom: {
    50: '#7e89c0',
    500: '#405ca5',
    950: '#000000',
  },
}
SCSS
$custom: #405ca5;
$custom-light: #7e89c0;
$custom-dark: #000000;
JSON
{
  "hex": "#405ca5",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 165
  },
  "hsl": {
    "h": 223.366,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49024,
    "c": 0.12163,
    "h": 266.2
  },
  "luminance": 0.11461
}

Semantic roles & 50–950 ramp

primary
#405CA5
secondary
#BEAD83
accent
#B054D4
background
#F8F8FB
surface
#EFF0F7
border
#CACBD0
text
#0B0B12
muted
#7C7C81

Preview Lab

Preview with #405CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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