#405AC7#405AC7

#405AC7 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.0% C 0.172 H 269.3°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#405AC7
RGBrgb(64, 90, 199)
HSLhsl(228, 55%, 52%)
HSVhsv(228, 68%, 78%)
CMYKcmyk(67.8%, 54.8%, 0%, 22%)
CIE-LABlab(42.04, 26.35, -59.79)
CIE-LCHlch(42.04, 65.34, 293.79°)
OKLaboklab(51.03% -0.0021 -0.172)
OKLCHoklch(51.03% 0.172 269.3)
XYZxyz(16.0758, 12.5243, 55.5920)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405AC7 #C7AD40
analogous
#409EC7 #405AC7 #6A40C7
triadic
#405AC7 #C7405A #5AC740
tetradic
#405AC7 #C7409E #C7AD40 #40C76A
square
#405AC7 #C7409E #C7AD40 #40C76A
split-complementary
#405AC7 #C76A40 #9EC740
monochromatic
#202F6D #2E439C #405AC7 #6F83D5 #9FACE3

Accessibility & contrast

On white

5.99
#405AC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #405AC7
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405AC7#FFFFFF#000000##FFFFFF
##405AC71.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACB
Deuteranopia (green-blind)
#005DC5
Tritanopia (blue-blind)
#007488
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405ac7;
/* rgb */ color: rgb(64, 90, 199);
/* oklch */ color: oklch(51.0% 0.172 269.3);
Tailwind
colors: {
  custom: {
    50: '#8488d9',
    500: '#405ac7',
    950: '#000000',
  },
}
SCSS
$custom: #405ac7;
$custom-light: #8488d9;
$custom-dark: #000000;
JSON
{
  "hex": "#405ac7",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 199
  },
  "hsl": {
    "h": 228.444,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.51026,
    "c": 0.172,
    "h": 269.3
  },
  "luminance": 0.12526
}

Semantic roles & 50–950 ramp

primary
#405AC7
secondary
#CFC494
accent
#C14ADE
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #405AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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