#5B52BB#5B52BB

#5B52BB is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.4% C 0.160 H 282.9°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#5B52BB
RGBrgb(91, 82, 187)
HSLhsl(245, 44%, 53%)
HSVhsv(245, 56%, 73%)
CMYKcmyk(51.3%, 56.1%, 0%, 26.7%)
CIE-LABlab(40.97, 32.22, -54.45)
CIE-LCHlch(40.97, 63.27, 300.62°)
OKLaboklab(50.42% 0.0357 -0.1557)
OKLCHoklch(50.42% 0.16 282.9)
XYZxyz(16.2986, 11.8457, 48.4317)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B52BB #B2BB52
analogous
#527DBB #5B52BB #8F52BB
triadic
#5B52BB #BB5B52 #52BB5B
tetradic
#5B52BB #BB527D #B2BB52 #52BB8F
square
#5B52BB #BB527D #B2BB52 #52BB8F
split-complementary
#5B52BB #BB8F52 #7DBB52
monochromatic
#2F2969 #423B95 #5B52BB #857ECC #AEAADE

Accessibility & contrast

On white

6.23
#5B52BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#5B52BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B52BB
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B52BB#FFFFFF#000000##FFFFFF
##5B52BB1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A64BF
Deuteranopia (green-blind)
#005DB9
Tritanopia (blue-blind)
#356A7E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5b52bb;
/* rgb */ color: rgb(91, 82, 187);
/* oklch */ color: oklch(50.4% 0.160 282.9);
Tailwind
colors: {
  custom: {
    50: '#9183d0',
    500: '#5b52bb',
    950: '#000000',
  },
}
SCSS
$custom: #5b52bb;
$custom-light: #9183d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b52bb",
  "rgb": {
    "r": 91,
    "g": 82,
    "b": 187
  },
  "hsl": {
    "h": 245.143,
    "s": 43.568,
    "l": 52.745
  },
  "oklch": {
    "l": 0.50424,
    "c": 0.1597,
    "h": 282.9
  },
  "luminance": 0.11847
}

Semantic roles & 50–950 ramp

primary
#5B52BB
secondary
#C7CB9E
accent
#D354C8
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #5B52BB

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

Preview Lab → · Contrast checker → · Palette generator →

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