#405BC4#405BC4

#405BC4 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.0% C 0.167 H 268.9°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#405BC4
RGBrgb(64, 91, 196)
HSLhsl(228, 53%, 51%)
HSVhsv(228, 67%, 77%)
CMYKcmyk(67.3%, 53.6%, 0%, 23.1%)
CIE-LABlab(42.09, 24.64, -57.97)
CIE-LCHlch(42.09, 62.99, 293.03°)
OKLaboklab(51% -0.0032 -0.1666)
OKLCHoklch(51% 0.167 268.9)
XYZxyz(15.8158, 12.5562, 53.8039)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BC4 #C4A940
analogous
#409DC4 #405BC4 #6740C4
triadic
#405BC4 #C4405B #5BC440
tetradic
#405BC4 #C4409D #C4A940 #40C467
square
#405BC4 #C4409D #C4A940 #40C467
split-complementary
#405BC4 #C46740 #9DC440
monochromatic
#202F69 #2F4498 #405BC4 #6F83D2 #9EABE1

Accessibility & contrast

On white

5.98
#405BC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#405BC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BC4
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BC4#FFFFFF#000000##FFFFFF
##405BC41.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F6AC8
Deuteranopia (green-blind)
#005EC2
Tritanopia (blue-blind)
#007486
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405bc4;
/* rgb */ color: rgb(64, 91, 196);
/* oklch */ color: oklch(51.0% 0.167 268.9);
Tailwind
colors: {
  custom: {
    50: '#8489d7',
    500: '#405bc4',
    950: '#000000',
  },
}
SCSS
$custom: #405bc4;
$custom-light: #8489d7;
$custom-dark: #000000;
JSON
{
  "hex": "#405bc4",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 196
  },
  "hsl": {
    "h": 227.727,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.50995,
    "c": 0.16665,
    "h": 268.9
  },
  "luminance": 0.12558
}

Semantic roles & 50–950 ramp

primary
#405BC4
secondary
#CDC193
accent
#BF4CDC
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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