#5A5BE1#5A5BE1

#5A5BE1 is a mid, vivid blue. Relative luminance 0.151; OKLCH L 54.8% C 0.199 H 277.3°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#5A5BE1
RGBrgb(90, 91, 225)
HSLhsl(240, 69%, 62%)
HSVhsv(240, 60%, 88%)
CMYKcmyk(60%, 59.6%, 0%, 11.8%)
CIE-LABlab(45.76, 38.66, -68.56)
CIE-LCHlch(45.76, 78.71, 299.42°)
OKLaboklab(54.81% 0.0252 -0.1971)
OKLCHoklch(54.81% 0.199 277.3)
XYZxyz(21.5438, 15.0904, 72.9970)
Luminance0.1509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5BE1 #E1E05A
analogous
#5A9EE1 #5A5BE1 #9D5AE1
triadic
#5A5BE1 #E15A5B #5BE15A
tetradic
#5A5BE1 #E15A9E #E1E05A #5AE19D
square
#5A5BE1 #E15A9E #E1E05A #5AE19D
split-complementary
#5A5BE1 #E19D5A #9EE15A
monochromatic
#1E1FA3 #2728D7 #5A5BE1 #8E8EEA #C2C2F4

Accessibility & contrast

On white

5.23
#5A5BE1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#5A5BE1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5BE1
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5BE1#FFFFFF#000000##FFFFFF
##5A5BE11.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E5
Deuteranopia (green-blind)
#0067DE
Tritanopia (blue-blind)
#007C95
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5a5be1;
/* rgb */ color: rgb(90, 91, 225);
/* oklch */ color: oklch(54.8% 0.199 277.3);
Tailwind
colors: {
  custom: {
    50: '#9589eb',
    500: '#5a5be1',
    950: '#000000',
  },
}
SCSS
$custom: #5a5be1;
$custom-light: #9589eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5be1",
  "rgb": {
    "r": 90,
    "g": 91,
    "b": 225
  },
  "hsl": {
    "h": 239.556,
    "s": 69.231,
    "l": 61.765
  },
  "oklch": {
    "l": 0.54807,
    "c": 0.19875,
    "h": 277.3
  },
  "luminance": 0.15092
}

Semantic roles & 50–950 ramp

primary
#5A5BE1
secondary
#E4E4B2
accent
#D014D1
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0B16
muted
#7E7C84

Preview Lab

Preview with #5A5BE1

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

Preview Lab → · Contrast checker → · Palette generator →

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