#5642BC#5642BC

#5642BC is a mid, vivid blue. Relative luminance 0.095; OKLCH L 47.4% C 0.183 H 284.5°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#5642BC
RGBrgb(86, 66, 188)
HSLhsl(250, 48%, 50%)
HSVhsv(250, 65%, 74%)
CMYKcmyk(54.3%, 64.9%, 0%, 26.3%)
CIE-LABlab(36.94, 41.18, -61.59)
CIE-LCHlch(36.94, 74.09, 303.76°)
OKLaboklab(47.39% 0.0457 -0.1769)
OKLCHoklch(47.39% 0.183 284.5)
XYZxyz(14.8603, 9.5049, 48.6188)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5642BC #A8BC42
analogous
#426BBC #5642BC #9342BC
triadic
#5642BC #BC5642 #42BC56
tetradic
#5642BC #BC426B #A8BC42 #42BC93
square
#5642BC #BC426B #A8BC42 #42BC93
split-complementary
#5642BC #BC9342 #6BBC42
monochromatic
#2D2261 #41328F #5642BC #7E6FCC #A79CDC

Accessibility & contrast

On white

7.24
#5642BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5642BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5642BC
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5642BC#FFFFFF#000000##FFFFFF
##5642BC1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC0
Deuteranopia (green-blind)
#0053BA
Tritanopia (blue-blind)
#2A6079
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5642bc;
/* rgb */ color: rgb(86, 66, 188);
/* oklch */ color: oklch(47.4% 0.183 284.5);
Tailwind
colors: {
  custom: {
    50: '#8f78d1',
    500: '#5642bc',
    950: '#000000',
  },
}
SCSS
$custom: #5642bc;
$custom-light: #8f78d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5642bc",
  "rgb": {
    "r": 86,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 249.836,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47385,
    "c": 0.1827,
    "h": 284.5
  },
  "luminance": 0.09506
}

Semantic roles & 50–950 ramp

primary
#5642BC
secondary
#BFC991
accent
#D850C1
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5642BC

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

Preview Lab → · Contrast checker → · Palette generator →

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