#5B5BB0#5B5BB0

#5B5BB0 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.4% C 0.132 H 280.7°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#5B5BB0
RGBrgb(91, 91, 176)
HSLhsl(240, 35%, 52%)
HSVhsv(240, 48%, 69%)
CMYKcmyk(48.3%, 48.3%, 0%, 31%)
CIE-LABlab(42.52, 23.19, -45.50)
CIE-LCHlch(42.52, 51.07, 297.01°)
OKLaboklab(51.36% 0.0245 -0.1293)
OKLCHoklch(51.36% 0.132 280.7)
XYZxyz(15.8896, 12.8401, 42.7070)
Luminance0.1284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5BB0 #B0B05B
analogous
#5B86B0 #5B5BB0 #865BB0
triadic
#5B5BB0 #B05B5B #5BB05B
tetradic
#5B5BB0 #B05B86 #B0B05B #5BB086
square
#5B5BB0 #B05B86 #B0B05B #5BB086
split-complementary
#5B5BB0 #B0865B #86B05B
monochromatic
#2F2F62 #43438B #5B5BB0 #8484C4 #AEAED8

Accessibility & contrast

On white

5.89
#5B5BB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#5B5BB0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5BB0
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5BB0#FFFFFF#000000##FFFFFF
##5B5BB01.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3668B3
Deuteranopia (green-blind)
#3061AE
Tritanopia (blue-blind)
#3C6D7D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5b5bb0;
/* rgb */ color: rgb(91, 91, 176);
/* oklch */ color: oklch(51.4% 0.132 280.7);
Tailwind
colors: {
  custom: {
    50: '#8f89c8',
    500: '#5b5bb0',
    950: '#000000',
  },
}
SCSS
$custom: #5b5bb0;
$custom-light: #8f89c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5bb0",
  "rgb": {
    "r": 91,
    "g": 91,
    "b": 176
  },
  "hsl": {
    "h": 240,
    "s": 34.979,
    "l": 52.353
  },
  "oklch": {
    "l": 0.51359,
    "c": 0.13161,
    "h": 280.7
  },
  "luminance": 0.12841
}

Semantic roles & 50–950 ramp

primary
#5B5BB0
secondary
#C6C6A1
accent
#CB5DCB
background
#F9F8FC
surface
#F1F0F8
border
#CBCBD1
text
#0D0B13
muted
#7E7C82

Preview Lab

Preview with #5B5BB0

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

Preview Lab → · Contrast checker → · Palette generator →

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