#405DC1#405DC1

#405DC1 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.2% C 0.160 H 268.1°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#405DC1
RGBrgb(64, 93, 193)
HSLhsl(227, 51%, 50%)
HSVhsv(227, 67%, 76%)
CMYKcmyk(66.8%, 51.8%, 0%, 24.3%)
CIE-LABlab(42.41, 22.28, -55.70)
CIE-LCHlch(42.41, 60.00, 291.80°)
OKLaboklab(51.17% -0.0052 -0.1599)
OKLCHoklch(51.17% 0.16 268.1)
XYZxyz(15.6510, 12.7675, 52.0813)
Luminance0.1277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DC1 #C1A440
analogous
#409DC1 #405DC1 #6440C1
triadic
#405DC1 #C1405D #5DC140
tetradic
#405DC1 #C1409D #C1A440 #40C164
square
#405DC1 #C1409D #C1A440 #40C164
split-complementary
#405DC1 #C16440 #9DC140
monochromatic
#213066 #304694 #405DC1 #6E84D0 #9CABDF

Accessibility & contrast

On white

5.91
#405DC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#405DC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DC1
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DC1#FFFFFF#000000##FFFFFF
##405DC11.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F6AC5
Deuteranopia (green-blind)
#005FBF
Tritanopia (blue-blind)
#007586
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #405dc1;
/* rgb */ color: rgb(64, 93, 193);
/* oklch */ color: oklch(51.2% 0.160 268.1);
Tailwind
colors: {
  custom: {
    50: '#838ad4',
    500: '#405dc1',
    950: '#000000',
  },
}
SCSS
$custom: #405dc1;
$custom-light: #838ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#405dc1",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 193
  },
  "hsl": {
    "h": 226.512,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51174,
    "c": 0.16002,
    "h": 268.1
  },
  "luminance": 0.12769
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405DC1

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

Preview Lab → · Contrast checker → · Palette generator →

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