#405EC5#405EC5

#405EC5 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.7% C 0.164 H 268.0°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#405EC5
RGBrgb(64, 94, 197)
HSLhsl(226, 53%, 51%)
HSVhsv(226, 68%, 77%)
CMYKcmyk(67.5%, 52.3%, 0%, 22.7%)
CIE-LABlab(42.95, 23.08, -57.15)
CIE-LCHlch(42.95, 61.63, 291.99°)
OKLaboklab(51.67% -0.0058 -0.1642)
OKLCHoklch(51.67% 0.164 268)
XYZxyz(16.1916, 13.1251, 54.4926)
Luminance0.1313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405EC5 #C5A740
analogous
#40A0C5 #405EC5 #6440C5
triadic
#405EC5 #C5405E #5EC540
tetradic
#405EC5 #C540A0 #C5A740 #40C564
square
#405EC5 #C540A0 #C5A740 #40C564
split-complementary
#405EC5 #C56440 #A0C540
monochromatic
#20316A #2F4799 #405EC5 #6F86D3 #9EADE2

Accessibility & contrast

On white

5.79
#405EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#405EC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405EC5
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405EC5#FFFFFF#000000##FFFFFF
##405EC51.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B6CC9
Deuteranopia (green-blind)
#0060C3
Tritanopia (blue-blind)
#007688
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #405ec5;
/* rgb */ color: rgb(64, 94, 197);
/* oklch */ color: oklch(51.7% 0.164 268.0);
Tailwind
colors: {
  custom: {
    50: '#848bd7',
    500: '#405ec5',
    950: '#000000',
  },
}
SCSS
$custom: #405ec5;
$custom-light: #848bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#405ec5",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 197
  },
  "hsl": {
    "h": 226.466,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.5167,
    "c": 0.16427,
    "h": 268
  },
  "luminance": 0.13127
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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