#5B52BF#5B52BF

#5B52BF is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.7% C 0.165 H 282.5°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#5B52BF
RGBrgb(91, 82, 191)
HSLhsl(245, 46%, 54%)
HSVhsv(245, 57%, 75%)
CMYKcmyk(52.4%, 57.1%, 0%, 25.1%)
CIE-LABlab(41.25, 33.48, -56.33)
CIE-LCHlch(41.25, 65.53, 300.72°)
OKLaboklab(50.72% 0.0357 -0.1612)
OKLCHoklch(50.72% 0.165 282.5)
XYZxyz(16.7328, 12.0194, 50.7184)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B52BF #B6BF52
analogous
#527FBF #5B52BF #9152BF
triadic
#5B52BF #BF5B52 #52BF5B
tetradic
#5B52BF #BF527F #B6BF52 #52BF91
square
#5B52BF #BF527F #B6BF52 #52BF91
split-complementary
#5B52BF #BF9152 #7FBF52
monochromatic
#2E296E #41399B #5B52BF #857FD0 #B0ABE0

Accessibility & contrast

On white

6.17
#5B52BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5B52BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B52BF
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B52BF#FFFFFF#000000##FFFFFF
##5B52BF1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C3
Deuteranopia (green-blind)
#005EBD
Tritanopia (blue-blind)
#326B80
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5b52bf;
/* rgb */ color: rgb(91, 82, 191);
/* oklch */ color: oklch(50.7% 0.165 282.5);
Tailwind
colors: {
  custom: {
    50: '#9183d3',
    500: '#5b52bf',
    950: '#000000',
  },
}
SCSS
$custom: #5b52bf;
$custom-light: #9183d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b52bf",
  "rgb": {
    "r": 91,
    "g": 82,
    "b": 191
  },
  "hsl": {
    "h": 244.954,
    "s": 45.992,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50718,
    "c": 0.16512,
    "h": 282.5
  },
  "luminance": 0.1202
}

Semantic roles & 50–950 ramp

primary
#5B52BF
secondary
#CACE9F
accent
#D652CB
background
#F9F8FD
surface
#F2EFFA
border
#CCCAD3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5B52BF

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

Preview Lab → · Contrast checker → · Palette generator →

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