#405AC1#405AC1

#405AC1 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.6% C 0.164 H 269.1°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#405AC1
RGBrgb(64, 90, 193)
HSLhsl(228, 51%, 50%)
HSVhsv(228, 67%, 76%)
CMYKcmyk(66.8%, 53.4%, 0%, 24.3%)
CIE-LABlab(41.61, 24.21, -56.99)
CIE-LCHlch(41.61, 61.92, 293.02°)
OKLaboklab(50.57% -0.0025 -0.1638)
OKLCHoklch(50.57% 0.164 269.1)
XYZxyz(15.3929, 12.2511, 51.9952)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405AC1 #C1A740
analogous
#409AC1 #405AC1 #6640C1
triadic
#405AC1 #C1405A #5AC140
tetradic
#405AC1 #C1409A #C1A740 #40C166
square
#405AC1 #C1409A #C1A740 #40C166
split-complementary
#405AC1 #C16640 #9AC140
monochromatic
#212F66 #304494 #405AC1 #6E82D0 #9CAADF

Accessibility & contrast

On white

6.09
#405AC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#405AC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405AC1
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405AC1#FFFFFF#000000##FFFFFF
##405AC11.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1268C5
Deuteranopia (green-blind)
#005DBF
Tritanopia (blue-blind)
#007385
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405ac1;
/* rgb */ color: rgb(64, 90, 193);
/* oklch */ color: oklch(50.6% 0.164 269.1);
Tailwind
colors: {
  custom: {
    50: '#8388d4',
    500: '#405ac1',
    950: '#000000',
  },
}
SCSS
$custom: #405ac1;
$custom-light: #8388d4;
$custom-dark: #000000;
JSON
{
  "hex": "#405ac1",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 193
  },
  "hsl": {
    "h": 227.907,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.50571,
    "c": 0.16379,
    "h": 269.1
  },
  "luminance": 0.12253
}

Semantic roles & 50–950 ramp

primary
#405AC1
secondary
#CBC092
accent
#BE4DDA
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405AC1

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

Preview Lab → · Contrast checker → · Palette generator →

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