#405CA3#405CA3

#405CA3 is a mid, moderate blue. Relative luminance 0.114; OKLCH L 48.9% C 0.119 H 266.0°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#405CA3
RGBrgb(64, 92, 163)
HSLhsl(223, 44%, 45%)
HSVhsv(223, 61%, 64%)
CMYKcmyk(60.7%, 43.6%, 0%, 36.1%)
CIE-LABlab(40.23, 12.26, -41.59)
CIE-LCHlch(40.23, 43.35, 286.42°)
OKLaboklab(48.89% -0.0084 -0.1184)
OKLCHoklch(48.89% 0.119 266)
XYZxyz(12.5501, 11.3876, 36.1799)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CA3 #A38740
analogous
#408EA3 #405CA3 #5640A3
triadic
#405CA3 #A3405C #5CA340
tetradic
#405CA3 #A3408E #A38740 #40A356
square
#405CA3 #A3408E #A38740 #40A356
split-complementary
#405CA3 #A35640 #8EA340
monochromatic
#1D2A4B #2F4377 #405CA3 #607BC0 #8C9FD2

Accessibility & contrast

On white

6.41
#405CA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#405CA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CA3
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CA3#FFFFFF#000000##FFFFFF
##405CA31.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C64A6
Deuteranopia (green-blind)
#2E5BA1
Tritanopia (blue-blind)
#006C77
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #405ca3;
/* rgb */ color: rgb(64, 92, 163);
/* oklch */ color: oklch(48.9% 0.119 266.0);
Tailwind
colors: {
  custom: {
    50: '#7e89bf',
    500: '#405ca3',
    950: '#000000',
  },
}
SCSS
$custom: #405ca3;
$custom-light: #7e89bf;
$custom-dark: #000000;
JSON
{
  "hex": "#405ca3",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 163
  },
  "hsl": {
    "h": 223.03,
    "s": 43.612,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48894,
    "c": 0.11874,
    "h": 266
  },
  "luminance": 0.11389
}

Semantic roles & 50–950 ramp

primary
#405CA3
secondary
#BDAC82
accent
#AF54D3
background
#F8F8FB
surface
#EFF0F7
border
#CACBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #405CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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