#5747BB#5747BB

#5747BB is a mid, vivid blue. Relative luminance 0.101; OKLCH L 48.2% C 0.175 H 284.0°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#5747BB
RGBrgb(87, 71, 187)
HSLhsl(248, 46%, 51%)
HSVhsv(248, 62%, 73%)
CMYKcmyk(53.5%, 62%, 0%, 26.7%)
CIE-LABlab(38.06, 38.10, -59.18)
CIE-LCHlch(38.06, 70.39, 302.77°)
OKLaboklab(48.2% 0.0422 -0.1698)
OKLCHoklch(48.2% 0.175 284)
XYZxyz(15.1506, 10.1197, 48.1590)
Luminance0.1012 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5747BB #ABBB47
analogous
#4771BB #5747BB #9147BB
triadic
#5747BB #BB5747 #47BB57
tetradic
#5747BB #BB4771 #ABBB47 #47BB91
square
#5747BB #BB4771 #ABBB47 #47BB91
split-complementary
#5747BB #BB9147 #71BB47
monochromatic
#2D2563 #423590 #5747BB #8074CC #A9A0DC

Accessibility & contrast

On white

6.94
#5747BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5747BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5747BB
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5747BB#FFFFFF#000000##FFFFFF
##5747BB1.006.943.026.94
#FFFFFF6.941.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#0056B9
Tritanopia (blue-blind)
#2D637A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5747bb;
/* rgb */ color: rgb(87, 71, 187);
/* oklch */ color: oklch(48.2% 0.175 284.0);
Tailwind
colors: {
  custom: {
    50: '#8f7bd0',
    500: '#5747bb',
    950: '#000000',
  },
}
SCSS
$custom: #5747bb;
$custom-light: #8f7bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5747bb",
  "rgb": {
    "r": 87,
    "g": 71,
    "b": 187
  },
  "hsl": {
    "h": 248.276,
    "s": 46.032,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48196,
    "c": 0.17493,
    "h": 284
  },
  "luminance": 0.10121
}

Semantic roles & 50–950 ramp

primary
#5747BB
secondary
#C2C995
accent
#D652C4
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5747BB

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

Preview Lab → · Contrast checker → · Palette generator →

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