#405EC1#405EC1

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

Color values

HEX#405EC1
RGBrgb(64, 94, 193)
HSLhsl(226, 51%, 50%)
HSVhsv(226, 67%, 76%)
CMYKcmyk(66.8%, 51.3%, 0%, 24.3%)
CIE-LABlab(42.68, 21.64, -55.27)
CIE-LCHlch(42.68, 59.36, 291.38°)
OKLaboklab(51.38% -0.0061 -0.1586)
OKLCHoklch(51.38% 0.159 267.8)
XYZxyz(15.7394, 12.9442, 52.1107)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405EC1 #C1A340
analogous
#409EC1 #405EC1 #6340C1
triadic
#405EC1 #C1405E #5EC140
tetradic
#405EC1 #C1409E #C1A340 #40C163
square
#405EC1 #C1409E #C1A340 #40C163
split-complementary
#405EC1 #C16340 #9EC140
monochromatic
#213166 #304794 #405EC1 #6E85D0 #9CACDF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##405EC1#FFFFFF#000000##FFFFFF
##405EC11.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)
#226BC5
Deuteranopia (green-blind)
#005FBF
Tritanopia (blue-blind)
#007586
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #405ec1;
/* rgb */ color: rgb(64, 94, 193);
/* oklch */ color: oklch(51.4% 0.159 267.8);
Tailwind
colors: {
  custom: {
    50: '#838bd4',
    500: '#405ec1',
    950: '#000000',
  },
}
SCSS
$custom: #405ec1;
$custom-light: #838bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#405ec1",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 193
  },
  "hsl": {
    "h": 226.047,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51377,
    "c": 0.15876,
    "h": 267.8
  },
  "luminance": 0.12946
}

Semantic roles & 50–950 ramp

primary
#405EC1
secondary
#CBBE92
accent
#BA4DDA
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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