#5851CD#5851CD

#5851CD is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.4% C 0.186 H 280.2°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#5851CD
RGBrgb(88, 81, 205)
HSLhsl(243, 55%, 56%)
HSVhsv(243, 60%, 80%)
CMYKcmyk(57.1%, 60.5%, 0%, 19.6%)
CIE-LABlab(41.79, 37.94, -63.58)
CIE-LCHlch(41.79, 74.04, 300.82°)
OKLaboklab(51.38% 0.0327 -0.1826)
OKLCHoklch(51.38% 0.186 280.2)
XYZxyz(17.9829, 12.3661, 59.1851)
Luminance0.1237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5851CD #C6CD51
analogous
#5188CD #5851CD #9651CD
triadic
#5851CD #CD5851 #51CD58
tetradic
#5851CD #CD5188 #C6CD51 #51CD96
square
#5851CD #CD5188 #C6CD51 #51CD96
split-complementary
#5851CD #CD9651 #88CD51
monochromatic
#2A257F #3932AF #5851CD #8681DB #B3B0E8

Accessibility & contrast

On white

6.05
#5851CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#5851CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5851CD
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5851CD#FFFFFF#000000##FFFFFF
##5851CD1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D1
Deuteranopia (green-blind)
#005ECA
Tritanopia (blue-blind)
#146F87
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5851cd;
/* rgb */ color: rgb(88, 81, 205);
/* oklch */ color: oklch(51.4% 0.186 280.2);
Tailwind
colors: {
  custom: {
    50: '#9282dd',
    500: '#5851cd',
    950: '#000000',
  },
}
SCSS
$custom: #5851cd;
$custom-light: #9282dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5851cd",
  "rgb": {
    "r": 88,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 243.387,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51381,
    "c": 0.18553,
    "h": 280.2
  },
  "luminance": 0.12367
}

Semantic roles & 50–950 ramp

primary
#5851CD
secondary
#D4D7A3
accent
#DF49D6
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5851CD

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

Preview Lab → · Contrast checker → · Palette generator →

#5851CD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva