#5A5BCA#5A5BCA

#5A5BCA is a mid, vivid blue. Relative luminance 0.139; OKLCH L 53.1% C 0.168 H 278.6°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#5A5BCA
RGBrgb(90, 91, 202)
HSLhsl(239, 51%, 57%)
HSVhsv(239, 55%, 79%)
CMYKcmyk(55.4%, 55%, 0%, 20.8%)
CIE-LABlab(44.12, 31.24, -58.08)
CIE-LCHlch(44.12, 65.95, 298.28°)
OKLaboklab(53.07% 0.0252 -0.1663)
OKLCHoklch(53.07% 0.168 278.6)
XYZxyz(18.6148, 13.9189, 57.5714)
Luminance0.1392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5BCA #CAC95A
analogous
#5A93CA #5A5BCA #915ACA
triadic
#5A5BCA #CA5A5B #5BCA5A
tetradic
#5A5BCA #CA5A93 #CAC95A #5ACA91
square
#5A5BCA #CA5A93 #CAC95A #5ACA91
split-complementary
#5A5BCA #CA915A #93CA5A
monochromatic
#292A80 #3839AF #5A5BCA #8889D9 #B7B7E8

Accessibility & contrast

On white

5.55
#5A5BCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#5A5BCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5BCA
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5BCA#FFFFFF#000000##FFFFFF
##5A5BCA1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F6DCE
Deuteranopia (green-blind)
#0064C8
Tritanopia (blue-blind)
#20758A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5a5bca;
/* rgb */ color: rgb(90, 91, 202);
/* oklch */ color: oklch(53.1% 0.168 278.6);
Tailwind
colors: {
  custom: {
    50: '#9289db',
    500: '#5a5bca',
    950: '#000000',
  },
}
SCSS
$custom: #5a5bca;
$custom-light: #9289db;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5bca",
  "rgb": {
    "r": 90,
    "g": 91,
    "b": 202
  },
  "hsl": {
    "h": 239.464,
    "s": 51.376,
    "l": 57.255
  },
  "oklch": {
    "l": 0.53072,
    "c": 0.16821,
    "h": 278.6
  },
  "luminance": 0.1392
}

Semantic roles & 50–950 ramp

primary
#5A5BCA
secondary
#D7D6A9
accent
#DA4DDB
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5A5BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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