#405CC7#405CC7

#405CC7 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.4% C 0.170 H 268.7°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#405CC7
RGBrgb(64, 92, 199)
HSLhsl(228, 55%, 52%)
HSVhsv(228, 68%, 78%)
CMYKcmyk(67.8%, 53.8%, 0%, 22%)
CIE-LABlab(42.56, 25.07, -58.94)
CIE-LCHlch(42.56, 64.05, 293.04°)
OKLaboklab(51.42% -0.0038 -0.1695)
OKLCHoklch(51.42% 0.17 268.7)
XYZxyz(16.2468, 12.8662, 55.6490)
Luminance0.1287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CC7 #C7AB40
analogous
#409FC7 #405CC7 #6840C7
triadic
#405CC7 #C7405C #5CC740
tetradic
#405CC7 #C7409F #C7AB40 #40C768
square
#405CC7 #C7409F #C7AB40 #40C768
split-complementary
#405CC7 #C76840 #9FC740
monochromatic
#20306D #2E459C #405CC7 #6F84D5 #9FADE3

Accessibility & contrast

On white

5.88
#405CC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#405CC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CC7
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CC7#FFFFFF#000000##FFFFFF
##405CC71.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B6BCB
Deuteranopia (green-blind)
#005FC5
Tritanopia (blue-blind)
#007688
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #405cc7;
/* rgb */ color: rgb(64, 92, 199);
/* oklch */ color: oklch(51.4% 0.170 268.7);
Tailwind
colors: {
  custom: {
    50: '#8489d9',
    500: '#405cc7',
    950: '#000000',
  },
}
SCSS
$custom: #405cc7;
$custom-light: #8489d9;
$custom-dark: #000000;
JSON
{
  "hex": "#405cc7",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 199
  },
  "hsl": {
    "h": 227.556,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.51419,
    "c": 0.1695,
    "h": 268.7
  },
  "luminance": 0.12868
}

Semantic roles & 50–950 ramp

primary
#405CC7
secondary
#CFC394
accent
#BF4ADE
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #405CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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