#5642DF#5642DF

#5642DF is a mid, highly saturated blue. Relative luminance 0.112; OKLCH L 50.4% C 0.226 H 280.3°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#5642DF
RGBrgb(86, 66, 223)
HSLhsl(248, 71%, 57%)
HSVhsv(248, 70%, 87%)
CMYKcmyk(61.4%, 70.4%, 0%, 12.5%)
CIE-LABlab(39.92, 51.85, -76.99)
CIE-LCHlch(39.92, 92.82, 303.96°)
OKLaboklab(50.44% 0.0405 -0.222)
OKLCHoklch(50.44% 0.226 280.3)
XYZxyz(19.1010, 11.2011, 70.9532)
Luminance0.1120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5642DF #CBDF42
analogous
#427DDF #5642DF #A442DF
triadic
#5642DF #DF5642 #42DF56
tetradic
#5642DF #DF427D #CBDF42 #42DFA4
square
#5642DF #DF427D #CBDF42 #42DFA4
split-complementary
#5642DF #DFA442 #7DDF42
monochromatic
#27188E #3621C3 #5642DF #8576E8 #B4ABF1

Accessibility & contrast

On white

6.48
#5642DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5642DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5642DF
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5642DF#FFFFFF#000000##FFFFFF
##5642DF1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E4
Deuteranopia (green-blind)
#0058DC
Tritanopia (blue-blind)
#006D8C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5642df;
/* rgb */ color: rgb(86, 66, 223);
/* oklch */ color: oklch(50.4% 0.226 280.3);
Tailwind
colors: {
  custom: {
    50: '#9579ea',
    500: '#5642df',
    950: '#000000',
  },
}
SCSS
$custom: #5642df;
$custom-light: #9579ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5642df",
  "rgb": {
    "r": 86,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 247.643,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.50443,
    "c": 0.22569,
    "h": 280.3
  },
  "luminance": 0.11203
}

Semantic roles & 50–950 ramp

primary
#5642DF
secondary
#D6DF9E
accent
#EE3AD7
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5642DF

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

Preview Lab → · Contrast checker → · Palette generator →

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