#5642DC#5642DC

#5642DC is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 50.2% C 0.222 H 280.7°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#5642DC
RGBrgb(86, 66, 220)
HSLhsl(248, 69%, 56%)
HSVhsv(248, 70%, 86%)
CMYKcmyk(60.9%, 70%, 0%, 13.7%)
CIE-LABlab(39.65, 50.94, -75.71)
CIE-LCHlch(39.65, 91.25, 303.93°)
OKLaboklab(50.17% 0.0411 -0.2183)
OKLCHoklch(50.17% 0.222 280.7)
XYZxyz(18.7002, 11.0408, 68.8419)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5642DC #C8DC42
analogous
#427BDC #5642DC #A342DC
triadic
#5642DC #DC5642 #42DC56
tetradic
#5642DC #DC427B #C8DC42 #42DCA3
square
#5642DC #DC427B #C8DC42 #42DCA3
split-complementary
#5642DC #DCA342 #7BDC42
monochromatic
#281A8A #3723BE #5642DC #8476E6 #B2A9EF

Accessibility & contrast

On white

6.55
#5642DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#5642DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5642DC
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5642DC#FFFFFF#000000##FFFFFF
##5642DC1.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E1
Deuteranopia (green-blind)
#0058D9
Tritanopia (blue-blind)
#006C8A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5642dc;
/* rgb */ color: rgb(86, 66, 220);
/* oklch */ color: oklch(50.2% 0.222 280.7);
Tailwind
colors: {
  custom: {
    50: '#9479e8',
    500: '#5642dc',
    950: '#000000',
  },
}
SCSS
$custom: #5642dc;
$custom-light: #9479e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5642dc",
  "rgb": {
    "r": 86,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 247.792,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5017,
    "c": 0.22212,
    "h": 280.7
  },
  "luminance": 0.11042
}

Semantic roles & 50–950 ramp

primary
#5642DC
secondary
#D4DD9D
accent
#EC3CD5
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5642DC

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

Preview Lab → · Contrast checker → · Palette generator →

#5642DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva