#5851DB#5851DB

#5851DB is a mid, highly saturated blue. Relative luminance 0.131; OKLCH L 52.5% C 0.204 H 279.0°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#5851DB
RGBrgb(88, 81, 219)
HSLhsl(243, 66%, 59%)
HSVhsv(243, 63%, 86%)
CMYKcmyk(59.8%, 63%, 0%, 14.1%)
CIE-LABlab(42.87, 42.39, -69.86)
CIE-LCHlch(42.87, 81.71, 301.25°)
OKLaboklab(52.51% 0.0319 -0.2011)
OKLCHoklch(52.51% 0.204 279)
XYZxyz(19.7490, 13.0726, 68.4867)
Luminance0.1307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5851DB #D4DB51
analogous
#518FDB #5851DB #9D51DB
triadic
#5851DB #DB5851 #51DB58
tetradic
#5851DB #DB518F #D4DB51 #51DB9D
square
#5851DB #DB518F #D4DB51 #51DB9D
split-complementary
#5851DB #DB9D51 #8FDB51
monochromatic
#241E93 #3129C6 #5851DB #8984E5 #B9B6F0

Accessibility & contrast

On white

5.81
#5851DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#5851DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5851DB
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5851DB#FFFFFF#000000##FFFFFF
##5851DB1.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDF
Deuteranopia (green-blind)
#0060D8
Tritanopia (blue-blind)
#00748F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5851db;
/* rgb */ color: rgb(88, 81, 219);
/* oklch */ color: oklch(52.5% 0.204 279.0);
Tailwind
colors: {
  custom: {
    50: '#9482e7',
    500: '#5851db',
    950: '#000000',
  },
}
SCSS
$custom: #5851db;
$custom-light: #9482e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5851db",
  "rgb": {
    "r": 88,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 243.043,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.5251,
    "c": 0.20357,
    "h": 279
  },
  "luminance": 0.13074
}

Semantic roles & 50–950 ramp

primary
#5851DB
secondary
#DCDFA9
accent
#E93FE0
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5851DB

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

Preview Lab → · Contrast checker → · Palette generator →

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