#405CA8#405CA8

#405CA8 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.2% C 0.126 H 266.6°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#405CA8
RGBrgb(64, 92, 168)
HSLhsl(224, 45%, 45%)
HSVhsv(224, 62%, 66%)
CMYKcmyk(61.9%, 45.2%, 0%, 34.1%)
CIE-LABlab(40.52, 14.02, -44.07)
CIE-LCHlch(40.52, 46.25, 287.65°)
OKLaboklab(49.22% -0.0075 -0.1257)
OKLCHoklch(49.22% 0.126 266.6)
XYZxyz(13.0070, 11.5703, 38.5860)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CA8 #A88C40
analogous
#4090A8 #405CA8 #5840A8
triadic
#405CA8 #A8405C #5CA840
tetradic
#405CA8 #A84090 #A88C40 #40A858
square
#405CA8 #A84090 #A88C40 #40A858
split-complementary
#405CA8 #A85840 #90A840
monochromatic
#1E2B4F #2F447C #405CA8 #627CC3 #8EA1D4

Accessibility & contrast

On white

6.34
#405CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#405CA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CA8
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CA8#FFFFFF#000000##FFFFFF
##405CA81.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3965AB
Deuteranopia (green-blind)
#285BA6
Tritanopia (blue-blind)
#006D7A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #405ca8;
/* rgb */ color: rgb(64, 92, 168);
/* oklch */ color: oklch(49.2% 0.126 266.6);
Tailwind
colors: {
  custom: {
    50: '#7e89c2',
    500: '#405ca8',
    950: '#000000',
  },
}
SCSS
$custom: #405ca8;
$custom-light: #7e89c2;
$custom-dark: #000000;
JSON
{
  "hex": "#405ca8",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 168
  },
  "hsl": {
    "h": 223.846,
    "s": 44.828,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4922,
    "c": 0.12596,
    "h": 266.6
  },
  "luminance": 0.11571
}

Semantic roles & 50–950 ramp

primary
#405CA8
secondary
#BFAF85
accent
#B253D5
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0B12
muted
#7C7C81

Preview Lab

Preview with #405CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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