#405AC5#405AC5

#405AC5 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.9% C 0.169 H 269.2°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#405AC5
RGBrgb(64, 90, 197)
HSLhsl(228, 53%, 51%)
HSVhsv(228, 68%, 77%)
CMYKcmyk(67.5%, 54.3%, 0%, 22.7%)
CIE-LABlab(41.89, 25.64, -58.86)
CIE-LCHlch(41.89, 64.20, 293.54°)
OKLaboklab(50.87% -0.0022 -0.1693)
OKLCHoklch(50.87% 0.169 269.2)
XYZxyz(15.8451, 12.4320, 54.3771)
Luminance0.1243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405AC5 #C5AB40
analogous
#409CC5 #405AC5 #6840C5
triadic
#405AC5 #C5405A #5AC540
tetradic
#405AC5 #C5409C #C5AB40 #40C568
square
#405AC5 #C5409C #C5AB40 #40C568
split-complementary
#405AC5 #C56840 #9CC540
monochromatic
#202F6A #2F4399 #405AC5 #6F83D3 #9EABE2

Accessibility & contrast

On white

6.02
#405AC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#405AC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405AC5
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405AC5#FFFFFF#000000##FFFFFF
##405AC51.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0369C9
Deuteranopia (green-blind)
#005DC3
Tritanopia (blue-blind)
#007487
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405ac5;
/* rgb */ color: rgb(64, 90, 197);
/* oklch */ color: oklch(50.9% 0.169 269.2);
Tailwind
colors: {
  custom: {
    50: '#8488d7',
    500: '#405ac5',
    950: '#000000',
  },
}
SCSS
$custom: #405ac5;
$custom-light: #8488d7;
$custom-dark: #000000;
JSON
{
  "hex": "#405ac5",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 197
  },
  "hsl": {
    "h": 228.271,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.50873,
    "c": 0.16927,
    "h": 269.2
  },
  "luminance": 0.12434
}

Semantic roles & 50–950 ramp

primary
#405AC5
secondary
#CEC293
accent
#C04BDD
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405AC5

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

Preview Lab → · Contrast checker → · Palette generator →

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