#5642BB#5642BB

#5642BB is a mid, vivid blue. Relative luminance 0.095; OKLCH L 47.3% C 0.181 H 284.6°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#5642BB
RGBrgb(86, 66, 187)
HSLhsl(250, 48%, 50%)
HSVhsv(250, 65%, 73%)
CMYKcmyk(54%, 64.7%, 0%, 26.7%)
CIE-LABlab(36.86, 40.87, -61.13)
CIE-LCHlch(36.86, 73.54, 303.76°)
OKLaboklab(47.3% 0.0458 -0.1755)
OKLCHoklch(47.3% 0.181 284.6)
XYZxyz(14.7529, 9.4619, 48.0530)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5642BB #A7BB42
analogous
#426BBB #5642BB #9242BB
triadic
#5642BB #BB5642 #42BB56
tetradic
#5642BB #BB426B #A7BB42 #42BB92
square
#5642BB #BB426B #A7BB42 #42BB92
split-complementary
#5642BB #BB9242 #6BBB42
monochromatic
#2C2261 #41328E #5642BB #7E6ECC #A69CDC

Accessibility & contrast

On white

7.26
#5642BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5642BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5642BB
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5642BB#FFFFFF#000000##FFFFFF
##5642BB1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABF
Deuteranopia (green-blind)
#0053B9
Tritanopia (blue-blind)
#2B6078
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5642bb;
/* rgb */ color: rgb(86, 66, 187);
/* oklch */ color: oklch(47.3% 0.181 284.6);
Tailwind
colors: {
  custom: {
    50: '#8f78d0',
    500: '#5642bb',
    950: '#000000',
  },
}
SCSS
$custom: #5642bb;
$custom-light: #8f78d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5642bb",
  "rgb": {
    "r": 86,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 249.917,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47302,
    "c": 0.18142,
    "h": 284.6
  },
  "luminance": 0.09463
}

Semantic roles & 50–950 ramp

primary
#5642BB
secondary
#BFC891
accent
#D750C1
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5642BB

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

Preview Lab → · Contrast checker → · Palette generator →

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