#5A5FD5#5A5FD5

#5A5FD5 is a mid, vivid blue. Relative luminance 0.152; OKLCH L 54.6% C 0.178 H 276.9°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#5A5FD5
RGBrgb(90, 95, 213)
HSLhsl(238, 59%, 59%)
HSVhsv(238, 58%, 84%)
CMYKcmyk(57.7%, 55.4%, 0%, 16.5%)
CIE-LABlab(45.85, 32.34, -61.58)
CIE-LCHlch(45.85, 69.55, 297.71°)
OKLaboklab(54.61% 0.0215 -0.1766)
OKLCHoklch(54.61% 0.178 276.9)
XYZxyz(20.3150, 15.1607, 64.7937)
Luminance0.1516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5FD5 #D5D05A
analogous
#5A9DD5 #5A5FD5 #935AD5
triadic
#5A5FD5 #D55A5F #5FD55A
tetradic
#5A5FD5 #D55A9D #D5D05A #5AD593
square
#5A5FD5 #D55A9D #D5D05A #5AD593
split-complementary
#5A5FD5 #D5935A #9DD55A
monochromatic
#252990 #3137C1 #5A5FD5 #8B8EE1 #BCBEEE

Accessibility & contrast

On white

5.21
#5A5FD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#5A5FD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5FD5
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5FD5#FFFFFF#000000##FFFFFF
##5A5FD51.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072D9
Deuteranopia (green-blind)
#0068D3
Tritanopia (blue-blind)
#027B91
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a5fd5;
/* rgb */ color: rgb(90, 95, 213);
/* oklch */ color: oklch(54.6% 0.178 276.9);
Tailwind
colors: {
  custom: {
    50: '#938ce3',
    500: '#5a5fd5',
    950: '#000000',
  },
}
SCSS
$custom: #5a5fd5;
$custom-light: #938ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5fd5",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 213
  },
  "hsl": {
    "h": 237.561,
    "s": 59.42,
    "l": 59.412
  },
  "oklch": {
    "l": 0.54606,
    "c": 0.17788,
    "h": 276.9
  },
  "luminance": 0.15162
}

Semantic roles & 50–950 ramp

primary
#5A5FD5
secondary
#DDDBAD
accent
#DC45E3
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C15
muted
#7E7D84

Preview Lab

Preview with #5A5FD5

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

Preview Lab → · Contrast checker → · Palette generator →

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