#5C51BB#5C51BB

#5C51BB is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.3% C 0.161 H 283.7°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#5C51BB
RGBrgb(92, 81, 187)
HSLhsl(246, 44%, 53%)
HSVhsv(246, 57%, 73%)
CMYKcmyk(50.8%, 56.7%, 0%, 26.7%)
CIE-LABlab(40.81, 33.05, -54.70)
CIE-LCHlch(40.81, 63.91, 301.14°)
OKLaboklab(50.33% 0.0381 -0.1564)
OKLCHoklch(50.33% 0.161 283.7)
XYZxyz(16.3230, 11.7472, 48.4114)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C51BB #B0BB51
analogous
#517BBB #5C51BB #9151BB
triadic
#5C51BB #BB5C51 #51BB5C
tetradic
#5C51BB #BB517B #B0BB51 #51BB91
square
#5C51BB #BB517B #B0BB51 #51BB91
split-complementary
#5C51BB #BB9151 #7BBB51
monochromatic
#302969 #443A95 #5C51BB #857DCC #AEA9DD

Accessibility & contrast

On white

6.27
#5C51BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#5C51BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C51BB
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C51BB#FFFFFF#000000##FFFFFF
##5C51BB1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0464BF
Deuteranopia (green-blind)
#005DB9
Tritanopia (blue-blind)
#38697E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5c51bb;
/* rgb */ color: rgb(92, 81, 187);
/* oklch */ color: oklch(50.3% 0.161 283.7);
Tailwind
colors: {
  custom: {
    50: '#9182d0',
    500: '#5c51bb',
    950: '#000000',
  },
}
SCSS
$custom: #5c51bb;
$custom-light: #9182d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c51bb",
  "rgb": {
    "r": 92,
    "g": 81,
    "b": 187
  },
  "hsl": {
    "h": 246.226,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50327,
    "c": 0.16095,
    "h": 283.7
  },
  "luminance": 0.11748
}

Semantic roles & 50–950 ramp

primary
#5C51BB
secondary
#C6CB9D
accent
#D454C6
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #5C51BB

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

Preview Lab → · Contrast checker → · Palette generator →

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