#5A64C8#5A64C8

#5A64C8 is a mid, vivid blue. Relative luminance 0.155; OKLCH L 54.6% C 0.153 H 275.8°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#5A64C8
RGBrgb(90, 100, 200)
HSLhsl(235, 50%, 57%)
HSVhsv(235, 55%, 78%)
CMYKcmyk(55%, 50%, 0%, 21.6%)
CIE-LABlab(46.25, 25.02, -53.48)
CIE-LCHlch(46.25, 59.04, 295.07°)
OKLaboklab(54.63% 0.0155 -0.1527)
OKLCHoklch(54.63% 0.153 275.8)
XYZxyz(19.1956, 15.4568, 56.6043)
Luminance0.1546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A64C8 #C8BE5A
analogous
#5A9BC8 #5A64C8 #875AC8
triadic
#5A64C8 #C85A64 #64C85A
tetradic
#5A64C8 #C85A9B #C8BE5A #5AC887
square
#5A64C8 #C85A9B #C8BE5A #5AC887
split-complementary
#5A64C8 #C8875A #9BC85A
monochromatic
#2A327E #3944AC #5A64C8 #888FD7 #B6BAE7

Accessibility & contrast

On white

5.13
#5A64C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#5A64C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A64C8
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A64C8#FFFFFF#000000##FFFFFF
##5A64C81.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3272CC
Deuteranopia (green-blind)
#2169C6
Tritanopia (blue-blind)
#217A8C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a64c8;
/* rgb */ color: rgb(90, 100, 200);
/* oklch */ color: oklch(54.6% 0.153 275.8);
Tailwind
colors: {
  custom: {
    50: '#9190d9',
    500: '#5a64c8',
    950: '#000000',
  },
}
SCSS
$custom: #5a64c8;
$custom-light: #9190d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a64c8",
  "rgb": {
    "r": 90,
    "g": 100,
    "b": 200
  },
  "hsl": {
    "h": 234.545,
    "s": 50,
    "l": 56.863
  },
  "oklch": {
    "l": 0.54633,
    "c": 0.15349,
    "h": 275.8
  },
  "luminance": 0.15458
}

Semantic roles & 50–950 ramp

primary
#5A64C8
secondary
#D5D1A8
accent
#CD4EDA
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5A64C8

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

Preview Lab → · Contrast checker → · Palette generator →

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