#5642DD#5642DD

#5642DD is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.3% C 0.223 H 280.6°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#5642DD
RGBrgb(86, 66, 221)
HSLhsl(248, 70%, 56%)
HSVhsv(248, 70%, 87%)
CMYKcmyk(61.1%, 70.1%, 0%, 13.3%)
CIE-LABlab(39.74, 51.24, -76.14)
CIE-LCHlch(39.74, 91.77, 303.94°)
OKLaboklab(50.26% 0.0409 -0.2195)
OKLCHoklch(50.26% 0.223 280.6)
XYZxyz(18.8330, 11.0939, 69.5415)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5642DD #C9DD42
analogous
#427CDD #5642DD #A442DD
triadic
#5642DD #DD5642 #42DD56
tetradic
#5642DD #DD427C #C9DD42 #42DDA4
square
#5642DD #DD427C #C9DD42 #42DDA4
split-complementary
#5642DD #DDA442 #7CDD42
monochromatic
#28198C #3722BF #5642DD #8476E6 #B3AAF0

Accessibility & contrast

On white

6.52
#5642DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#5642DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5642DD
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5642DD#FFFFFF#000000##FFFFFF
##5642DD1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E2
Deuteranopia (green-blind)
#0058DA
Tritanopia (blue-blind)
#006C8B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5642dd;
/* rgb */ color: rgb(86, 66, 221);
/* oklch */ color: oklch(50.3% 0.223 280.6);
Tailwind
colors: {
  custom: {
    50: '#9479e9',
    500: '#5642dd',
    950: '#000000',
  },
}
SCSS
$custom: #5642dd;
$custom-light: #9479e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5642dd",
  "rgb": {
    "r": 86,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 247.742,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.5026,
    "c": 0.22331,
    "h": 280.6
  },
  "luminance": 0.11095
}

Semantic roles & 50–950 ramp

primary
#5642DD
secondary
#D5DD9D
accent
#EC3BD6
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5642DD

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

Preview Lab → · Contrast checker → · Palette generator →

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