#5A5BEF#5A5BEF

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

Color values

HEX#5A5BEF
RGBrgb(90, 91, 239)
HSLhsl(240, 82%, 65%)
HSVhsv(240, 62%, 94%)
CMYKcmyk(62.3%, 61.9%, 0%, 6.3%)
CIE-LABlab(46.82, 43.17, -74.73)
CIE-LCHlch(46.82, 86.30, 300.01°)
OKLaboklab(55.92% 0.0246 -0.2152)
OKLCHoklch(55.92% 0.217 276.5)
XYZxyz(23.5325, 15.8859, 83.4708)
Luminance0.1589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5BEF #EFEE5A
analogous
#5AA6EF #5A5BEF #A35AEF
triadic
#5A5BEF #EF5A5B #5BEF5A
tetradic
#5A5BEF #EF5AA6 #EFEE5A #5AEFA3
square
#5A5BEF #EF5AA6 #EFEE5A #5AEFA3
split-complementary
#5A5BEF #EFA35A #A6EF5A
monochromatic
#1213BC #2224EA #5A5BEF #9292F4 #CACAFA

Accessibility & contrast

On white

5.03
#5A5BEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#5A5BEF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5BEF
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5BEF#FFFFFF#000000##FFFFFF
##5A5BEF1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F4
Deuteranopia (green-blind)
#0069EC
Tritanopia (blue-blind)
#00809D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5a5bef;
/* rgb */ color: rgb(90, 91, 239);
/* oklch */ color: oklch(55.9% 0.217 276.5);
Tailwind
colors: {
  custom: {
    50: '#988af5',
    500: '#5a5bef',
    950: '#000000',
  },
}
SCSS
$custom: #5a5bef;
$custom-light: #988af5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5bef",
  "rgb": {
    "r": 90,
    "g": 91,
    "b": 239
  },
  "hsl": {
    "h": 239.597,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.55924,
    "c": 0.21665,
    "h": 276.5
  },
  "luminance": 0.15888
}

Semantic roles & 50–950 ramp

primary
#5A5BEF
secondary
#ECECB9
accent
#DD07DF
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A5BEF

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

Preview Lab → · Contrast checker → · Palette generator →

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