#5B5ABA#5B5ABA

#5B5ABA is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.8% C 0.147 H 280.4°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#5B5ABA
RGBrgb(91, 90, 186)
HSLhsl(241, 41%, 54%)
HSVhsv(241, 52%, 73%)
CMYKcmyk(51.1%, 51.6%, 0%, 27.1%)
CIE-LABlab(42.88, 26.96, -50.78)
CIE-LCHlch(42.88, 57.49, 297.97°)
OKLaboklab(51.83% 0.0266 -0.1448)
OKLCHoklch(51.83% 0.147 280.4)
XYZxyz(16.8308, 13.0807, 48.0828)
Luminance0.1308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5ABA #B9BA5A
analogous
#5A89BA #5B5ABA #8B5ABA
triadic
#5B5ABA #BA5B5A #5ABA5B
tetradic
#5B5ABA #BA5A89 #B9BA5A #5ABA8B
square
#5B5ABA #BA5A89 #B9BA5A #5ABA8B
split-complementary
#5B5ABA #BA8B5A #89BA5A
monochromatic
#2E2D6C #403F97 #5B5ABA #8685CC #B1B0DE

Accessibility & contrast

On white

5.81
#5B5ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#5B5ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5ABA
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5ABA#FFFFFF#000000##FFFFFF
##5B5ABA1.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A69BD
Deuteranopia (green-blind)
#2062B8
Tritanopia (blue-blind)
#356F81
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5b5aba;
/* rgb */ color: rgb(91, 90, 186);
/* oklch */ color: oklch(51.8% 0.147 280.4);
Tailwind
colors: {
  custom: {
    50: '#9088cf',
    500: '#5b5aba',
    950: '#000000',
  },
}
SCSS
$custom: #5b5aba;
$custom-light: #9088cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5aba",
  "rgb": {
    "r": 91,
    "g": 90,
    "b": 186
  },
  "hsl": {
    "h": 240.625,
    "s": 41.026,
    "l": 54.118
  },
  "oklch": {
    "l": 0.51832,
    "c": 0.14725,
    "h": 280.4
  },
  "luminance": 0.13082
}

Semantic roles & 50–950 ramp

primary
#5B5ABA
secondary
#CCCCA3
accent
#D157D0
background
#F9F8FC
surface
#F1F0F9
border
#CBCBD2
text
#0D0B14
muted
#7E7C82

Preview Lab

Preview with #5B5ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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