#405DC5#405DC5

#405DC5 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.5% C 0.166 H 268.3°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#405DC5
RGBrgb(64, 93, 197)
HSLhsl(227, 53%, 51%)
HSVhsv(227, 68%, 77%)
CMYKcmyk(67.5%, 52.8%, 0%, 22.7%)
CIE-LABlab(42.69, 23.72, -57.58)
CIE-LCHlch(42.69, 62.27, 292.39°)
OKLaboklab(51.47% -0.0049 -0.1655)
OKLCHoklch(51.47% 0.166 268.3)
XYZxyz(16.1033, 12.9484, 54.4631)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DC5 #C5A840
analogous
#409FC5 #405DC5 #6540C5
triadic
#405DC5 #C5405D #5DC540
tetradic
#405DC5 #C5409F #C5A840 #40C565
square
#405DC5 #C5409F #C5A840 #40C565
split-complementary
#405DC5 #C56540 #9FC540
monochromatic
#20306A #2F4699 #405DC5 #6F85D3 #9EADE2

Accessibility & contrast

On white

5.85
#405DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#405DC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DC5
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DC5#FFFFFF#000000##FFFFFF
##405DC51.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#176BC9
Deuteranopia (green-blind)
#005FC3
Tritanopia (blue-blind)
#007688
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #405dc5;
/* rgb */ color: rgb(64, 93, 197);
/* oklch */ color: oklch(51.5% 0.166 268.3);
Tailwind
colors: {
  custom: {
    50: '#848ad7',
    500: '#405dc5',
    950: '#000000',
  },
}
SCSS
$custom: #405dc5;
$custom-light: #848ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#405dc5",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 197
  },
  "hsl": {
    "h": 226.917,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51469,
    "c": 0.16552,
    "h": 268.3
  },
  "luminance": 0.1295
}

Semantic roles & 50–950 ramp

primary
#405DC5
secondary
#CEC193
accent
#BD4BDD
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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