#5651CD#5651CD

#5651CD is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.2% C 0.186 H 279.4°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#5651CD
RGBrgb(86, 81, 205)
HSLhsl(242, 55%, 56%)
HSVhsv(242, 60%, 80%)
CMYKcmyk(58%, 60.5%, 0%, 19.6%)
CIE-LABlab(41.64, 37.59, -63.83)
CIE-LCHlch(41.64, 74.08, 300.49°)
OKLaboklab(51.23% 0.0303 -0.1834)
OKLCHoklch(51.23% 0.186 279.4)
XYZxyz(17.7961, 12.2698, 59.1763)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5651CD #C8CD51
analogous
#518ACD #5651CD #9451CD
triadic
#5651CD #CD5651 #51CD56
tetradic
#5651CD #CD518A #C8CD51 #51CD94
square
#5651CD #CD518A #C8CD51 #51CD94
split-complementary
#5651CD #CD9451 #8ACD51
monochromatic
#28257F #3732AF #5651CD #8481DB #B2B0E8

Accessibility & contrast

On white

6.08
#5651CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#5651CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5651CD
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5651CD#FFFFFF#000000##FFFFFF
##5651CD1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D1
Deuteranopia (green-blind)
#005DCB
Tritanopia (blue-blind)
#056F87
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5651cd;
/* rgb */ color: rgb(86, 81, 205);
/* oklch */ color: oklch(51.2% 0.186 279.4);
Tailwind
colors: {
  custom: {
    50: '#9182dd',
    500: '#5651cd',
    950: '#000000',
  },
}
SCSS
$custom: #5651cd;
$custom-light: #9182dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5651cd",
  "rgb": {
    "r": 86,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 242.419,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51233,
    "c": 0.1859,
    "h": 279.4
  },
  "luminance": 0.12271
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5651CD

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

Preview Lab → · Contrast checker → · Palette generator →

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