#405AC8#405AC8

#405AC8 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.1% C 0.173 H 269.3°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#405AC8
RGBrgb(64, 90, 200)
HSLhsl(229, 55%, 52%)
HSVhsv(229, 68%, 78%)
CMYKcmyk(68%, 55%, 0%, 21.6%)
CIE-LABlab(42.11, 26.71, -60.25)
CIE-LCHlch(42.11, 65.90, 293.91°)
OKLaboklab(51.1% -0.0021 -0.1733)
OKLCHoklch(51.1% 0.173 269.3)
XYZxyz(16.1923, 12.5709, 56.2055)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405AC8 #C8AE40
analogous
#409EC8 #405AC8 #6A40C8
triadic
#405AC8 #C8405A #5AC840
tetradic
#405AC8 #C8409E #C8AE40 #40C86A
square
#405AC8 #C8409E #C8AE40 #40C86A
split-complementary
#405AC8 #C86A40 #9EC840
monochromatic
#202F6E #2D439D #405AC8 #7083D6 #9FACE3

Accessibility & contrast

On white

5.98
#405AC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#405AC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405AC8
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405AC8#FFFFFF#000000##FFFFFF
##405AC81.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #405ac8;
/* rgb */ color: rgb(64, 90, 200);
/* oklch */ color: oklch(51.1% 0.173 269.3);
Tailwind
colors: {
  custom: {
    50: '#8588d9',
    500: '#405ac8',
    950: '#000000',
  },
}
SCSS
$custom: #405ac8;
$custom-light: #8588d9;
$custom-dark: #000000;
JSON
{
  "hex": "#405ac8",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 200
  },
  "hsl": {
    "h": 228.529,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.51102,
    "c": 0.17335,
    "h": 269.3
  },
  "luminance": 0.12572
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405AC8

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

Preview Lab → · Contrast checker → · Palette generator →

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