#5A5BEA#5A5BEA

#5A5BEA is a mid, highly saturated blue. Relative luminance 0.156; OKLCH L 55.5% C 0.210 H 276.8°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#5A5BEA
RGBrgb(90, 91, 234)
HSLhsl(240, 77%, 64%)
HSVhsv(240, 62%, 92%)
CMYKcmyk(61.5%, 61.1%, 0%, 8.2%)
CIE-LABlab(46.44, 41.56, -72.54)
CIE-LCHlch(46.44, 83.61, 299.81°)
OKLaboklab(55.52% 0.0248 -0.2088)
OKLCHoklch(55.52% 0.21 276.8)
XYZxyz(22.8040, 15.5945, 79.6343)
Luminance0.1560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5BEA #EAE95A
analogous
#5AA3EA #5A5BEA #A15AEA
triadic
#5A5BEA #EA5A5B #5BEA5A
tetradic
#5A5BEA #EA5AA3 #EAE95A #5AEAA1
square
#5A5BEA #EA5AA3 #EAE95A #5AEAA1
split-complementary
#5A5BEA #EAA15A #A3EA5A
monochromatic
#1718B3 #2425E3 #5A5BEA #9091F1 #C7C7F8

Accessibility & contrast

On white

5.10
#5A5BEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#5A5BEA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5BEA
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5BEA#FFFFFF#000000##FFFFFF
##5A5BEA1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EF
Deuteranopia (green-blind)
#0068E7
Tritanopia (blue-blind)
#007F9A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a5bea;
/* rgb */ color: rgb(90, 91, 234);
/* oklch */ color: oklch(55.5% 0.210 276.8);
Tailwind
colors: {
  custom: {
    50: '#978af2',
    500: '#5a5bea',
    950: '#000000',
  },
}
SCSS
$custom: #5a5bea;
$custom-light: #978af2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5bea",
  "rgb": {
    "r": 90,
    "g": 91,
    "b": 234
  },
  "hsl": {
    "h": 239.583,
    "s": 77.419,
    "l": 63.529
  },
  "oklch": {
    "l": 0.5552,
    "c": 0.21032,
    "h": 276.8
  },
  "luminance": 0.15596
}

Semantic roles & 50–950 ramp

primary
#5A5BEA
secondary
#E9E9B6
accent
#D80CDA
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A5BEA

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

Preview Lab → · Contrast checker → · Palette generator →

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