#5A64D2#5A64D2

#5A64D2 is a mid, vivid blue. Relative luminance 0.159; OKLCH L 55.3% C 0.167 H 275.6°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#5A64D2
RGBrgb(90, 100, 210)
HSLhsl(235, 57%, 59%)
HSVhsv(235, 57%, 82%)
CMYKcmyk(57.1%, 52.4%, 0%, 17.6%)
CIE-LABlab(46.90, 28.28, -58.18)
CIE-LCHlch(46.90, 64.69, 295.92°)
OKLaboklab(55.32% 0.0163 -0.1665)
OKLCHoklch(55.32% 0.167 275.6)
XYZxyz(20.4027, 15.9397, 62.9618)
Luminance0.1594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A64D2 #D2C85A
analogous
#5AA0D2 #5A64D2 #8C5AD2
triadic
#5A64D2 #D25A64 #64D25A
tetradic
#5A64D2 #D25AA0 #D2C85A #5AD28C
square
#5A64D2 #D25AA0 #D2C85A #5AD28C
split-complementary
#5A64D2 #D28C5A #A0D25A
monochromatic
#262F8C #333FBC #5A64D2 #8A91DF #BABEEC

Accessibility & contrast

On white

5.01
#5A64D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#5A64D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A64D2
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A64D2#FFFFFF#000000##FFFFFF
##5A64D21.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2474D6
Deuteranopia (green-blind)
#016AD0
Tritanopia (blue-blind)
#0B7D91
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5a64d2;
/* rgb */ color: rgb(90, 100, 210);
/* oklch */ color: oklch(55.3% 0.167 275.6);
Tailwind
colors: {
  custom: {
    50: '#9290e0',
    500: '#5a64d2',
    950: '#000000',
  },
}
SCSS
$custom: #5a64d2;
$custom-light: #9290e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a64d2",
  "rgb": {
    "r": 90,
    "g": 100,
    "b": 210
  },
  "hsl": {
    "h": 235,
    "s": 57.143,
    "l": 58.824
  },
  "oklch": {
    "l": 0.55321,
    "c": 0.16733,
    "h": 275.6
  },
  "luminance": 0.15941
}

Semantic roles & 50–950 ramp

primary
#5A64D2
secondary
#DCD8AC
accent
#D447E0
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5A64D2

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

Preview Lab → · Contrast checker → · Palette generator →

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