#5641E2#5641E2

#5641E2 is a mid, highly saturated blue. Relative luminance 0.113; OKLCH L 50.6% C 0.230 H 280.2°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#5641E2
RGBrgb(86, 65, 226)
HSLhsl(248, 74%, 57%)
HSVhsv(248, 71%, 89%)
CMYKcmyk(61.9%, 71.2%, 0%, 11.4%)
CIE-LABlab(40.00, 53.29, -78.57)
CIE-LCHlch(40.00, 94.93, 304.15°)
OKLaboklab(50.58% 0.0407 -0.2266)
OKLCHoklch(50.58% 0.23 280.2)
XYZxyz(19.4512, 11.2485, 73.0829)
Luminance0.1125 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5641E2 #CDE241
analogous
#417DE2 #5641E2 #A741E2
triadic
#5641E2 #E25641 #41E256
tetradic
#5641E2 #E2417D #CDE241 #41E2A7
square
#5641E2 #E2417D #CDE241 #41E2A7
split-complementary
#5641E2 #E2A741 #7DE241
monochromatic
#261692 #341EC7 #5641E2 #8576EA #B4ABF2

Accessibility & contrast

On white

6.46
#5641E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#5641E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5641E2
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5641E2#FFFFFF#000000##FFFFFF
##5641E21.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E7
Deuteranopia (green-blind)
#0058DF
Tritanopia (blue-blind)
#006D8D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5641e2;
/* rgb */ color: rgb(86, 65, 226);
/* oklch */ color: oklch(50.6% 0.230 280.2);
Tailwind
colors: {
  custom: {
    50: '#9578ec',
    500: '#5641e2',
    950: '#000000',
  },
}
SCSS
$custom: #5641e2;
$custom-light: #9578ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5641e2",
  "rgb": {
    "r": 86,
    "g": 65,
    "b": 226
  },
  "hsl": {
    "h": 247.826,
    "s": 73.516,
    "l": 57.059
  },
  "oklch": {
    "l": 0.50581,
    "c": 0.23026,
    "h": 280.2
  },
  "luminance": 0.1125
}

Semantic roles & 50–950 ramp

primary
#5641E2
secondary
#D8E09F
accent
#F038D8
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5641E2

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

Preview Lab → · Contrast checker → · Palette generator →

#5641E2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva