#405FD1#405FD1

#405FD1 is a mid, vivid blue. Relative luminance 0.139; OKLCH L 52.8% C 0.179 H 268.2°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#405FD1
RGBrgb(64, 95, 209)
HSLhsl(227, 61%, 54%)
HSVhsv(227, 69%, 82%)
CMYKcmyk(69.4%, 54.5%, 0%, 18%)
CIE-LABlab(44.05, 26.73, -62.28)
CIE-LCHlch(44.05, 67.77, 293.23°)
OKLaboklab(52.77% -0.0057 -0.1792)
OKLCHoklch(52.77% 0.179 268.2)
XYZxyz(17.7112, 13.8761, 62.0542)
Luminance0.1388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FD1 #D1B240
analogous
#40A8D1 #405FD1 #6940D1
triadic
#405FD1 #D1405F #5FD140
tetradic
#405FD1 #D140A8 #D1B240 #40D169
square
#405FD1 #D140A8 #D1B240 #40D169
split-complementary
#405FD1 #D16940 #A8D140
monochromatic
#1D3179 #2945AB #405FD1 #7188DD #A3B2E9

Accessibility & contrast

On white

5.56
#405FD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#405FD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FD1
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FD1#FFFFFF#000000##FFFFFF
##405FD11.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD5
Deuteranopia (green-blind)
#0062CF
Tritanopia (blue-blind)
#007B8F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #405fd1;
/* rgb */ color: rgb(64, 95, 209);
/* oklch */ color: oklch(52.8% 0.179 268.2);
Tailwind
colors: {
  custom: {
    50: '#868ce0',
    500: '#405fd1',
    950: '#000000',
  },
}
SCSS
$custom: #405fd1;
$custom-light: #868ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#405fd1",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 209
  },
  "hsl": {
    "h": 227.172,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52769,
    "c": 0.17933,
    "h": 268.2
  },
  "luminance": 0.13878
}

Semantic roles & 50–950 ramp

primary
#405FD1
secondary
#D5C897
accent
#C244E4
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0D0C15
muted
#7D7D83

Preview Lab

Preview with #405FD1

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

Preview Lab → · Contrast checker → · Palette generator →

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