#5A64D8#5A64D8

#5A64D8 is a mid, vivid blue. Relative luminance 0.162; OKLCH L 55.7% C 0.176 H 275.4°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#5A64D8
RGBrgb(90, 100, 216)
HSLhsl(235, 62%, 60%)
HSVhsv(235, 58%, 85%)
CMYKcmyk(58.3%, 53.7%, 0%, 15.3%)
CIE-LABlab(47.29, 30.24, -60.96)
CIE-LCHlch(47.29, 68.05, 296.38°)
OKLaboklab(55.75% 0.0166 -0.1747)
OKLCHoklch(55.75% 0.176 275.4)
XYZxyz(21.1643, 16.2443, 66.9726)
Luminance0.1625 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A64D8 #D8CE5A
analogous
#5AA3D8 #5A64D8 #8F5AD8
triadic
#5A64D8 #D85A64 #64D85A
tetradic
#5A64D8 #D85AA3 #D8CE5A #5AD88F
square
#5A64D8 #D85AA3 #D8CE5A #5AD88F
split-complementary
#5A64D8 #D88F5A #A3D85A
monochromatic
#232C95 #2F3BC6 #5A64D8 #8B92E4 #BDC1EF

Accessibility & contrast

On white

4.94
#5A64D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#5A64D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A64D8
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A64D8#FFFFFF#000000##FFFFFF
##5A64D81.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1876DC
Deuteranopia (green-blind)
#006BD6
Tritanopia (blue-blind)
#007F94
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5a64d8;
/* rgb */ color: rgb(90, 100, 216);
/* oklch */ color: oklch(55.7% 0.176 275.4);
Tailwind
colors: {
  custom: {
    50: '#9390e5',
    500: '#5a64d8',
    950: '#000000',
  },
}
SCSS
$custom: #5a64d8;
$custom-light: #9390e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a64d8",
  "rgb": {
    "r": 90,
    "g": 100,
    "b": 216
  },
  "hsl": {
    "h": 235.238,
    "s": 61.765,
    "l": 60
  },
  "oklch": {
    "l": 0.55747,
    "c": 0.17551,
    "h": 275.4
  },
  "luminance": 0.16246
}

Semantic roles & 50–950 ramp

primary
#5A64D8
secondary
#DFDBAF
accent
#D843E5
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5A64D8

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

Preview Lab → · Contrast checker → · Palette generator →

#5A64D8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva