#5A5BF0#5A5BF0

#5A5BF0 is a mid, highly saturated blue. Relative luminance 0.159; OKLCH L 56.0% C 0.218 H 276.5°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#5A5BF0
RGBrgb(90, 91, 240)
HSLhsl(240, 83%, 65%)
HSVhsv(240, 63%, 94%)
CMYKcmyk(62.5%, 62.1%, 0%, 5.9%)
CIE-LABlab(46.90, 43.49, -75.16)
CIE-LCHlch(46.90, 86.84, 300.06°)
OKLaboklab(56.01% 0.0245 -0.2165)
OKLCHoklch(56.01% 0.218 276.5)
XYZxyz(23.6806, 15.9452, 84.2510)
Luminance0.1595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5BF0 #F0EF5A
analogous
#5AA6F0 #5A5BF0 #A45AF0
triadic
#5A5BF0 #F05A5B #5BF05A
tetradic
#5A5BF0 #F05AA6 #F0EF5A #5AF0A4
square
#5A5BF0 #F05AA6 #F0EF5A #5AF0A4
split-complementary
#5A5BF0 #F0A45A #A6F05A
monochromatic
#1112BE #2223EB #5A5BF0 #9293F5 #CACBFA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A5BF0#FFFFFF#000000##FFFFFF
##5A5BF01.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)
#0076F5
Deuteranopia (green-blind)
#0069ED
Tritanopia (blue-blind)
#00819D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5a5bf0;
/* rgb */ color: rgb(90, 91, 240);
/* oklch */ color: oklch(56.0% 0.218 276.5);
Tailwind
colors: {
  custom: {
    50: '#988af6',
    500: '#5a5bf0',
    950: '#000000',
  },
}
SCSS
$custom: #5a5bf0;
$custom-light: #988af6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5bf0",
  "rgb": {
    "r": 90,
    "g": 91,
    "b": 240
  },
  "hsl": {
    "h": 239.6,
    "s": 83.333,
    "l": 64.706
  },
  "oklch": {
    "l": 0.56006,
    "c": 0.21791,
    "h": 276.5
  },
  "luminance": 0.15947
}

Semantic roles & 50–950 ramp

primary
#5A5BF0
secondary
#EDECB9
accent
#DE06E0
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A5BF0

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

Preview Lab → · Contrast checker → · Palette generator →

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