#405BC8#405BC8

#405BC8 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.3% C 0.172 H 269.0°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#405BC8
RGBrgb(64, 91, 200)
HSLhsl(228, 55%, 52%)
HSVhsv(228, 68%, 78%)
CMYKcmyk(68%, 54.5%, 0%, 21.6%)
CIE-LABlab(42.37, 26.07, -59.83)
CIE-LCHlch(42.37, 65.26, 293.54°)
OKLaboklab(51.3% -0.0029 -0.1721)
OKLCHoklch(51.3% 0.172 269)
XYZxyz(16.2772, 12.7407, 56.2338)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BC8 #C8AD40
analogous
#409FC8 #405BC8 #6940C8
triadic
#405BC8 #C8405B #5BC840
tetradic
#405BC8 #C8409F #C8AD40 #40C869
square
#405BC8 #C8409F #C8AD40 #40C869
split-complementary
#405BC8 #C86940 #9FC840
monochromatic
#202F6E #2D449D #405BC8 #7084D6 #9FADE3

Accessibility & contrast

On white

5.92
#405BC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#405BC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BC8
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BC8#FFFFFF#000000##FFFFFF
##405BC81.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACC
Deuteranopia (green-blind)
#005EC6
Tritanopia (blue-blind)
#007588
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #405bc8;
/* rgb */ color: rgb(64, 91, 200);
/* oklch */ color: oklch(51.3% 0.172 269.0);
Tailwind
colors: {
  custom: {
    50: '#8489d9',
    500: '#405bc8',
    950: '#000000',
  },
}
SCSS
$custom: #405bc8;
$custom-light: #8489d9;
$custom-dark: #000000;
JSON
{
  "hex": "#405bc8",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 200
  },
  "hsl": {
    "h": 228.088,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.51298,
    "c": 0.17211,
    "h": 269
  },
  "luminance": 0.12742
}

Semantic roles & 50–950 ramp

primary
#405BC8
secondary
#D0C494
accent
#C149DF
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #405BC8

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

Preview Lab → · Contrast checker → · Palette generator →

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