#405BA3#405BA3

#405BA3 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.7% C 0.120 H 266.5°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#405BA3
RGBrgb(64, 91, 163)
HSLhsl(224, 44%, 45%)
HSVhsv(224, 61%, 64%)
CMYKcmyk(60.7%, 44.2%, 0%, 36.1%)
CIE-LABlab(39.94, 12.90, -42.04)
CIE-LCHlch(39.94, 43.97, 287.06°)
OKLaboklab(48.68% -0.0073 -0.1198)
OKLCHoklch(48.68% 0.12 266.5)
XYZxyz(12.4640, 11.2155, 36.1512)
Luminance0.1122 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BA3 #A38840
analogous
#408DA3 #405BA3 #5640A3
triadic
#405BA3 #A3405B #5BA340
tetradic
#405BA3 #A3408D #A38840 #40A356
square
#405BA3 #A3408D #A38840 #40A356
split-complementary
#405BA3 #A35640 #8DA340
monochromatic
#1D2A4B #2F4277 #405BA3 #607AC0 #8C9FD2

Accessibility & contrast

On white

6.47
#405BA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #405BA3
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BA3#FFFFFF#000000##FFFFFF
##405BA31.006.473.246.47
#FFFFFF6.471.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A63A6
Deuteranopia (green-blind)
#2C5AA1
Tritanopia (blue-blind)
#006B77
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #405ba3;
/* rgb */ color: rgb(64, 91, 163);
/* oklch */ color: oklch(48.7% 0.120 266.5);
Tailwind
colors: {
  custom: {
    50: '#7e89bf',
    500: '#405ba3',
    950: '#000000',
  },
}
SCSS
$custom: #405ba3;
$custom-light: #7e89bf;
$custom-dark: #000000;
JSON
{
  "hex": "#405ba3",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 163
  },
  "hsl": {
    "h": 223.636,
    "s": 43.612,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48675,
    "c": 0.12,
    "h": 266.5
  },
  "luminance": 0.11217
}

Semantic roles & 50–950 ramp

primary
#405BA3
secondary
#BDAD82
accent
#B154D3
background
#F8F8FB
surface
#EFEFF7
border
#CACAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #405BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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