#5851CF#5851CF

#5851CF is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.5% C 0.188 H 280.0°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#5851CF
RGBrgb(88, 81, 207)
HSLhsl(243, 57%, 56%)
HSVhsv(243, 61%, 81%)
CMYKcmyk(57.5%, 60.9%, 0%, 18.8%)
CIE-LABlab(41.94, 38.57, -64.49)
CIE-LCHlch(41.94, 75.14, 300.89°)
OKLaboklab(51.54% 0.0326 -0.1853)
OKLCHoklch(51.54% 0.188 280)
XYZxyz(18.2259, 12.4633, 60.4646)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5851CF #C8CF51
analogous
#5189CF #5851CF #9751CF
triadic
#5851CF #CF5851 #51CF58
tetradic
#5851CF #CF5189 #C8CF51 #51CF97
square
#5851CF #CF5189 #C8CF51 #51CF97
split-complementary
#5851CF #CF9751 #89CF51
monochromatic
#292482 #3831B2 #5851CF #8681DC #B4B1E9

Accessibility & contrast

On white

6.01
#5851CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#5851CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5851CF
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5851CF#FFFFFF#000000##FFFFFF
##5851CF1.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D3
Deuteranopia (green-blind)
#005ECC
Tritanopia (blue-blind)
#0F7088
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5851cf;
/* rgb */ color: rgb(88, 81, 207);
/* oklch */ color: oklch(51.5% 0.188 280.0);
Tailwind
colors: {
  custom: {
    50: '#9282df',
    500: '#5851cf',
    950: '#000000',
  },
}
SCSS
$custom: #5851cf;
$custom-light: #9282df;
$custom-dark: #000000;
JSON
{
  "hex": "#5851cf",
  "rgb": {
    "r": 88,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 243.333,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.5154,
    "c": 0.18814,
    "h": 280
  },
  "luminance": 0.12465
}

Semantic roles & 50–950 ramp

primary
#5851CF
secondary
#D5D8A4
accent
#E048D8
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5851CF

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

Preview Lab → · Contrast checker → · Palette generator →

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