#5A5BE3#5A5BE3

#5A5BE3 is a mid, highly saturated blue. Relative luminance 0.152; OKLCH L 55.0% C 0.201 H 277.2°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#5A5BE3
RGBrgb(90, 91, 227)
HSLhsl(240, 71%, 62%)
HSVhsv(240, 60%, 89%)
CMYKcmyk(60.4%, 59.9%, 0%, 11%)
CIE-LABlab(45.91, 39.31, -69.45)
CIE-LCHlch(45.91, 79.81, 299.51°)
OKLaboklab(54.96% 0.0251 -0.1998)
OKLCHoklch(54.96% 0.201 277.2)
XYZxyz(21.8182, 15.2002, 74.4423)
Luminance0.1520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5BE3 #E3E25A
analogous
#5AA0E3 #5A5BE3 #9E5AE3
triadic
#5A5BE3 #E35A5B #5BE35A
tetradic
#5A5BE3 #E35AA0 #E3E25A #5AE39E
square
#5A5BE3 #E35AA0 #E3E25A #5AE39E
split-complementary
#5A5BE3 #E39E5A #A0E35A
monochromatic
#1C1DA6 #2627DA #5A5BE3 #8E8FEC #C3C3F5

Accessibility & contrast

On white

5.20
#5A5BE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#5A5BE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5BE3
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5BE3#FFFFFF#000000##FFFFFF
##5A5BE31.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E7
Deuteranopia (green-blind)
#0067E0
Tritanopia (blue-blind)
#007C96
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a5be3;
/* rgb */ color: rgb(90, 91, 227);
/* oklch */ color: oklch(55.0% 0.201 277.2);
Tailwind
colors: {
  custom: {
    50: '#9689ed',
    500: '#5a5be3',
    950: '#000000',
  },
}
SCSS
$custom: #5a5be3;
$custom-light: #9689ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5be3",
  "rgb": {
    "r": 90,
    "g": 91,
    "b": 227
  },
  "hsl": {
    "h": 239.562,
    "s": 70.984,
    "l": 62.157
  },
  "oklch": {
    "l": 0.54964,
    "c": 0.20134,
    "h": 277.2
  },
  "luminance": 0.15202
}

Semantic roles & 50–950 ramp

primary
#5A5BE3
secondary
#E6E5B3
accent
#D212D3
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0B16
muted
#7E7C84

Preview Lab

Preview with #5A5BE3

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

Preview Lab → · Contrast checker → · Palette generator →

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