#405DC8#405DC8

#405DC8 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.7% C 0.170 H 268.4°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#405DC8
RGBrgb(64, 93, 200)
HSLhsl(227, 55%, 52%)
HSVhsv(227, 68%, 78%)
CMYKcmyk(68%, 53.5%, 0%, 21.6%)
CIE-LABlab(42.89, 24.79, -58.98)
CIE-LCHlch(42.89, 63.97, 292.80°)
OKLaboklab(51.69% -0.0046 -0.1696)
OKLCHoklch(51.69% 0.17 268.4)
XYZxyz(16.4504, 13.0872, 56.2915)
Luminance0.1309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DC8 #C8AB40
analogous
#40A1C8 #405DC8 #6740C8
triadic
#405DC8 #C8405D #5DC840
tetradic
#405DC8 #C840A1 #C8AB40 #40C867
square
#405DC8 #C840A1 #C8AB40 #40C867
split-complementary
#405DC8 #C86740 #A1C840
monochromatic
#20306E #2D459D #405DC8 #7085D6 #9FAEE3

Accessibility & contrast

On white

5.80
#405DC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#405DC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405DC8
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405DC8#FFFFFF#000000##FFFFFF
##405DC81.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F6CCC
Deuteranopia (green-blind)
#005FC6
Tritanopia (blue-blind)
#007789
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #405dc8;
/* rgb */ color: rgb(64, 93, 200);
/* oklch */ color: oklch(51.7% 0.170 268.4);
Tailwind
colors: {
  custom: {
    50: '#848ad9',
    500: '#405dc8',
    950: '#000000',
  },
}
SCSS
$custom: #405dc8;
$custom-light: #848ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#405dc8",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 200
  },
  "hsl": {
    "h": 227.206,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.51693,
    "c": 0.16962,
    "h": 268.4
  },
  "luminance": 0.13089
}

Semantic roles & 50–950 ramp

primary
#405DC8
secondary
#D0C394
accent
#BF49DF
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #405DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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