#405CB4#405CB4

#405CB4 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.0% C 0.143 H 267.7°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#405CB4
RGBrgb(64, 92, 180)
HSLhsl(226, 48%, 48%)
HSVhsv(226, 64%, 71%)
CMYKcmyk(64.4%, 48.9%, 0%, 29.4%)
CIE-LABlab(41.28, 18.28, -49.94)
CIE-LCHlch(41.28, 53.18, 290.11°)
OKLaboklab(50.04% -0.0057 -0.143)
OKLCHoklch(50.04% 0.143 267.7)
XYZxyz(14.1769, 12.0383, 44.7477)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CB4 #B49840
analogous
#4096B4 #405CB4 #5E40B4
triadic
#405CB4 #B4405C #5CB440
tetradic
#405CB4 #B44096 #B49840 #40B45E
square
#405CB4 #B44096 #B49840 #40B45E
split-complementary
#405CB4 #B45E40 #96B440
monochromatic
#202E5A #304587 #405CB4 #687FC9 #95A6D9

Accessibility & contrast

On white

6.16
#405CB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#405CB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CB4
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CB4#FFFFFF#000000##FFFFFF
##405CB41.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E67B7
Deuteranopia (green-blind)
#145CB2
Tritanopia (blue-blind)
#00707F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #405cb4;
/* rgb */ color: rgb(64, 92, 180);
/* oklch */ color: oklch(50.0% 0.143 267.7);
Tailwind
colors: {
  custom: {
    50: '#8189cb',
    500: '#405cb4',
    950: '#000000',
  },
}
SCSS
$custom: #405cb4;
$custom-light: #8189cb;
$custom-dark: #000000;
JSON
{
  "hex": "#405cb4",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 180
  },
  "hsl": {
    "h": 225.517,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50037,
    "c": 0.14311,
    "h": 267.7
  },
  "luminance": 0.1204
}

Semantic roles & 50–950 ramp

primary
#405CB4
secondary
#C5B78B
accent
#B751D7
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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