#405CC8#405CC8

#405CC8 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.5% C 0.171 H 268.7°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#405CC8
RGBrgb(64, 92, 200)
HSLhsl(228, 55%, 52%)
HSVhsv(228, 68%, 78%)
CMYKcmyk(68%, 54%, 0%, 21.6%)
CIE-LABlab(42.63, 25.43, -59.40)
CIE-LCHlch(42.63, 64.62, 293.17°)
OKLaboklab(51.5% -0.0038 -0.1708)
OKLCHoklch(51.5% 0.171 268.7)
XYZxyz(16.3632, 12.9128, 56.2625)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CC8 #C8AC40
analogous
#40A0C8 #405CC8 #6840C8
triadic
#405CC8 #C8405C #5CC840
tetradic
#405CC8 #C840A0 #C8AC40 #40C868
square
#405CC8 #C840A0 #C8AC40 #40C868
split-complementary
#405CC8 #C86840 #A0C840
monochromatic
#20306E #2D449D #405CC8 #7085D6 #9FADE3

Accessibility & contrast

On white

5.86
#405CC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#405CC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CC8
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CC8#FFFFFF#000000##FFFFFF
##405CC81.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#076BCC
Deuteranopia (green-blind)
#005FC6
Tritanopia (blue-blind)
#007689
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #405cc8;
/* rgb */ color: rgb(64, 92, 200);
/* oklch */ color: oklch(51.5% 0.171 268.7);
Tailwind
colors: {
  custom: {
    50: '#8489d9',
    500: '#405cc8',
    950: '#000000',
  },
}
SCSS
$custom: #405cc8;
$custom-light: #8489d9;
$custom-dark: #000000;
JSON
{
  "hex": "#405cc8",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 200
  },
  "hsl": {
    "h": 227.647,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.51495,
    "c": 0.17087,
    "h": 268.7
  },
  "luminance": 0.12914
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405CC8

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

Preview Lab → · Contrast checker → · Palette generator →

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