#5642DB#5642DB

#5642DB is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 50.1% C 0.221 H 280.8°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#5642DB
RGBrgb(86, 66, 219)
HSLhsl(248, 68%, 56%)
HSVhsv(248, 70%, 86%)
CMYKcmyk(60.7%, 69.9%, 0%, 14.1%)
CIE-LABlab(39.56, 50.64, -75.28)
CIE-LCHlch(39.56, 90.73, 303.93°)
OKLaboklab(50.08% 0.0413 -0.217)
OKLCHoklch(50.08% 0.221 280.8)
XYZxyz(18.5681, 10.9880, 68.1465)
Luminance0.1099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5642DB #C7DB42
analogous
#427ADB #5642DB #A242DB
triadic
#5642DB #DB5642 #42DB56
tetradic
#5642DB #DB427A #C7DB42 #42DBA2
square
#5642DB #DB427A #C7DB42 #42DBA2
split-complementary
#5642DB #DBA242 #7ADB42
monochromatic
#281A89 #3824BC #5642DB #8475E5 #B2A9EF

Accessibility & contrast

On white

6.57
#5642DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#5642DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5642DB
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5642DB#FFFFFF#000000##FFFFFF
##5642DB1.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E0
Deuteranopia (green-blind)
#0057D8
Tritanopia (blue-blind)
#006B8A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5642db;
/* rgb */ color: rgb(86, 66, 219);
/* oklch */ color: oklch(50.1% 0.221 280.8);
Tailwind
colors: {
  custom: {
    50: '#9478e7',
    500: '#5642db',
    950: '#000000',
  },
}
SCSS
$custom: #5642db;
$custom-light: #9478e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5642db",
  "rgb": {
    "r": 86,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 247.843,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.50079,
    "c": 0.22093,
    "h": 280.8
  },
  "luminance": 0.10989
}

Semantic roles & 50–950 ramp

primary
#5642DB
secondary
#D4DC9D
accent
#EB3DD4
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5642DB

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

Preview Lab → · Contrast checker → · Palette generator →

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