#5247D8#5247D8

#5247D8 is a mid, highly saturated blue. Relative luminance 0.113; OKLCH L 50.2% C 0.213 H 278.9°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#5247D8
RGBrgb(82, 71, 216)
HSLhsl(245, 65%, 56%)
HSVhsv(245, 67%, 85%)
CMYKcmyk(62%, 67.1%, 0%, 15.3%)
CIE-LABlab(40.01, 46.37, -72.84)
CIE-LCHlch(40.01, 86.34, 302.48°)
OKLaboklab(50.24% 0.0328 -0.21)
OKLCHoklch(50.24% 0.213 278.9)
XYZxyz(18.1236, 11.2568, 66.1701)
Luminance0.1126 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5247D8 #CDD847
analogous
#4785D8 #5247D8 #9B47D8
triadic
#5247D8 #D85247 #47D852
tetradic
#5247D8 #D84785 #CDD847 #47D89B
square
#5247D8 #D84785 #CDD847 #47D89B
split-complementary
#5247D8 #D89B47 #85D847
monochromatic
#251D88 #3327BA #5247D8 #8179E3 #B1ACED

Accessibility & contrast

On white

6.46
#5247D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#5247D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5247D8
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

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

Design tokens & code

CSS
--color: #5247d8;
/* rgb */ color: rgb(82, 71, 216);
/* oklch */ color: oklch(50.2% 0.213 278.9);
Tailwind
colors: {
  custom: {
    50: '#917be5',
    500: '#5247d8',
    950: '#000000',
  },
}
SCSS
$custom: #5247d8;
$custom-light: #917be5;
$custom-dark: #000000;
JSON
{
  "hex": "#5247d8",
  "rgb": {
    "r": 82,
    "g": 71,
    "b": 216
  },
  "hsl": {
    "h": 244.552,
    "s": 65.022,
    "l": 56.275
  },
  "oklch": {
    "l": 0.50244,
    "c": 0.21255,
    "h": 278.9
  },
  "luminance": 0.11258
}

Semantic roles & 50–950 ramp

primary
#5247D8
secondary
#D7DBA0
accent
#E840DB
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5247D8

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

Preview Lab → · Contrast checker → · Palette generator →

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