#405CC1#405CC1

#405CC1 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.0% C 0.161 H 268.5°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#405CC1
RGBrgb(64, 92, 193)
HSLhsl(227, 51%, 50%)
HSVhsv(227, 67%, 76%)
CMYKcmyk(66.8%, 52.3%, 0%, 24.3%)
CIE-LABlab(42.14, 22.93, -56.14)
CIE-LCHlch(42.14, 60.64, 292.22°)
OKLaboklab(50.97% -0.0043 -0.1612)
OKLCHoklch(50.97% 0.161 268.5)
XYZxyz(15.5638, 12.5931, 52.0522)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CC1 #C1A540
analogous
#409CC1 #405CC1 #6540C1
triadic
#405CC1 #C1405C #5CC140
tetradic
#405CC1 #C1409C #C1A540 #40C165
square
#405CC1 #C1409C #C1A540 #40C165
split-complementary
#405CC1 #C16540 #9CC140
monochromatic
#213066 #304694 #405CC1 #6E83D0 #9CABDF

Accessibility & contrast

On white

5.97
#405CC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#405CC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CC1
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CC1#FFFFFF#000000##FFFFFF
##405CC11.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B6AC5
Deuteranopia (green-blind)
#005EBF
Tritanopia (blue-blind)
#007485
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405cc1;
/* rgb */ color: rgb(64, 92, 193);
/* oklch */ color: oklch(51.0% 0.161 268.5);
Tailwind
colors: {
  custom: {
    50: '#8389d4',
    500: '#405cc1',
    950: '#000000',
  },
}
SCSS
$custom: #405cc1;
$custom-light: #8389d4;
$custom-dark: #000000;
JSON
{
  "hex": "#405cc1",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 193
  },
  "hsl": {
    "h": 226.977,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.50972,
    "c": 0.16128,
    "h": 268.5
  },
  "luminance": 0.12595
}

Semantic roles & 50–950 ramp

primary
#405CC1
secondary
#CBBF92
accent
#BC4DDA
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405CC1

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

Preview Lab → · Contrast checker → · Palette generator →

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