#405DC7#405DC7

#405DC7 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.6% C 0.168 H 268.4°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#405DC7
RGBrgb(64, 93, 199)
HSLhsl(227, 55%, 52%)
HSVhsv(227, 68%, 78%)
CMYKcmyk(67.8%, 53.3%, 0%, 22%)
CIE-LABlab(42.82, 24.43, -58.51)
CIE-LCHlch(42.82, 63.41, 292.66°)
OKLaboklab(51.62% -0.0047 -0.1682)
OKLCHoklch(51.62% 0.168 268.4)
XYZxyz(16.3340, 13.0406, 55.6780)
Luminance0.1304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DC7 #C7AA40
analogous
#40A1C7 #405DC7 #6740C7
triadic
#405DC7 #C7405D #5DC740
tetradic
#405DC7 #C740A1 #C7AA40 #40C767
square
#405DC7 #C740A1 #C7AA40 #40C767
split-complementary
#405DC7 #C76740 #A1C740
monochromatic
#20306D #2E459C #405DC7 #6F85D5 #9FADE3

Accessibility & contrast

On white

5.82
#405DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#405DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DC7
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DC7#FFFFFF#000000##FFFFFF
##405DC71.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#126CCB
Deuteranopia (green-blind)
#005FC5
Tritanopia (blue-blind)
#007689
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #405dc7;
/* rgb */ color: rgb(64, 93, 199);
/* oklch */ color: oklch(51.6% 0.168 268.4);
Tailwind
colors: {
  custom: {
    50: '#848ad9',
    500: '#405dc7',
    950: '#000000',
  },
}
SCSS
$custom: #405dc7;
$custom-light: #848ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#405dc7",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 199
  },
  "hsl": {
    "h": 227.111,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.51618,
    "c": 0.16826,
    "h": 268.4
  },
  "luminance": 0.13042
}

Semantic roles & 50–950 ramp

primary
#405DC7
secondary
#CFC294
accent
#BE4ADE
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #405DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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