#405AC4#405AC4

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

Color values

HEX#405AC4
RGBrgb(64, 90, 196)
HSLhsl(228, 53%, 51%)
HSVhsv(228, 67%, 77%)
CMYKcmyk(67.3%, 54.1%, 0%, 23.1%)
CIE-LABlab(41.82, 25.28, -58.39)
CIE-LCHlch(41.82, 63.63, 293.41°)
OKLaboklab(50.8% -0.0023 -0.1679)
OKLCHoklch(50.8% 0.168 269.2)
XYZxyz(15.7309, 12.3863, 53.7756)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405AC4 #C4AA40
analogous
#409CC4 #405AC4 #6840C4
triadic
#405AC4 #C4405A #5AC440
tetradic
#405AC4 #C4409C #C4AA40 #40C468
square
#405AC4 #C4409C #C4AA40 #40C468
split-complementary
#405AC4 #C46840 #9CC440
monochromatic
#202F69 #2F4498 #405AC4 #6F82D2 #9EABE1

Accessibility & contrast

On white

6.04
#405AC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#405AC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405AC4
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405AC4#FFFFFF#000000##FFFFFF
##405AC41.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0869C8
Deuteranopia (green-blind)
#005DC2
Tritanopia (blue-blind)
#007386
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405ac4;
/* rgb */ color: rgb(64, 90, 196);
/* oklch */ color: oklch(50.8% 0.168 269.2);
Tailwind
colors: {
  custom: {
    50: '#8488d7',
    500: '#405ac4',
    950: '#000000',
  },
}
SCSS
$custom: #405ac4;
$custom-light: #8488d7;
$custom-dark: #000000;
JSON
{
  "hex": "#405ac4",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 196
  },
  "hsl": {
    "h": 228.182,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.50797,
    "c": 0.16791,
    "h": 269.2
  },
  "luminance": 0.12388
}

Semantic roles & 50–950 ramp

primary
#405AC4
secondary
#CDC293
accent
#C04CDC
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405AC4

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

Preview Lab → · Contrast checker → · Palette generator →

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