#405BC1#405BC1

#405BC1 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.8% C 0.163 H 268.8°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#405BC1
RGBrgb(64, 91, 193)
HSLhsl(227, 51%, 50%)
HSVhsv(227, 67%, 76%)
CMYKcmyk(66.8%, 52.8%, 0%, 24.3%)
CIE-LABlab(41.88, 23.57, -56.57)
CIE-LCHlch(41.88, 61.28, 292.62°)
OKLaboklab(50.77% -0.0034 -0.1625)
OKLCHoklch(50.77% 0.163 268.8)
XYZxyz(15.4778, 12.4210, 52.0235)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BC1 #C1A640
analogous
#409BC1 #405BC1 #6540C1
triadic
#405BC1 #C1405B #5BC140
tetradic
#405BC1 #C1409B #C1A640 #40C165
square
#405BC1 #C1409B #C1A640 #40C165
split-complementary
#405BC1 #C16540 #9BC140
monochromatic
#212F66 #304594 #405BC1 #6E83D0 #9CAADF

Accessibility & contrast

On white

6.03
#405BC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#405BC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BC1
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BC1#FFFFFF#000000##FFFFFF
##405BC11.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #405bc1;
/* rgb */ color: rgb(64, 91, 193);
/* oklch */ color: oklch(50.8% 0.163 268.8);
Tailwind
colors: {
  custom: {
    50: '#8389d4',
    500: '#405bc1',
    950: '#000000',
  },
}
SCSS
$custom: #405bc1;
$custom-light: #8389d4;
$custom-dark: #000000;
JSON
{
  "hex": "#405bc1",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 193
  },
  "hsl": {
    "h": 227.442,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.50771,
    "c": 0.16254,
    "h": 268.8
  },
  "luminance": 0.12422
}

Semantic roles & 50–950 ramp

primary
#405BC1
secondary
#CBBF92
accent
#BD4DDA
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405BC1

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

Preview Lab → · Contrast checker → · Palette generator →

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