#5645D8#5645D8

#5645D8 is a mid, highly saturated blue. Relative luminance 0.112; OKLCH L 50.2% C 0.214 H 280.6°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#5645D8
RGBrgb(86, 69, 216)
HSLhsl(247, 65%, 56%)
HSVhsv(247, 68%, 85%)
CMYKcmyk(60.2%, 68.1%, 0%, 15.3%)
CIE-LABlab(39.90, 48.06, -73.00)
CIE-LCHlch(39.90, 87.41, 303.36°)
OKLaboklab(50.24% 0.0395 -0.2104)
OKLCHoklch(50.24% 0.214 280.6)
XYZxyz(18.3566, 11.1912, 66.1452)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5645D8 #C7D845
analogous
#457DD8 #5645D8 #9F45D8
triadic
#5645D8 #D85645 #45D856
tetradic
#5645D8 #D8457D #C7D845 #45D89F
square
#5645D8 #D8457D #C7D845 #45D89F
split-complementary
#5645D8 #D89F45 #7DD845
monochromatic
#281C86 #3827B9 #5645D8 #8478E3 #B2AAED

Accessibility & contrast

On white

6.48
#5645D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5645D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5645D8
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5645D8#FFFFFF#000000##FFFFFF
##5645D81.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)
#0063DC
Deuteranopia (green-blind)
#0058D5
Tritanopia (blue-blind)
#006C89
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5645d8;
/* rgb */ color: rgb(86, 69, 216);
/* oklch */ color: oklch(50.2% 0.214 280.6);
Tailwind
colors: {
  custom: {
    50: '#937ae5',
    500: '#5645d8',
    950: '#000000',
  },
}
SCSS
$custom: #5645d8;
$custom-light: #937ae5;
$custom-dark: #000000;
JSON
{
  "hex": "#5645d8",
  "rgb": {
    "r": 86,
    "g": 69,
    "b": 216
  },
  "hsl": {
    "h": 246.939,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.50243,
    "c": 0.21404,
    "h": 280.6
  },
  "luminance": 0.11193
}

Semantic roles & 50–950 ramp

primary
#5645D8
secondary
#D4DB9E
accent
#E840D5
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5645D8

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

Preview Lab → · Contrast checker → · Palette generator →

#5645D8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva