#5247CB#5247CB

#5247CB is a mid, vivid blue. Relative luminance 0.106; OKLCH L 49.1% C 0.196 H 280.1°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#5247CB
RGBrgb(82, 71, 203)
HSLhsl(245, 56%, 54%)
HSVhsv(245, 65%, 80%)
CMYKcmyk(59.6%, 65%, 0%, 20.4%)
CIE-LABlab(38.92, 42.26, -67.13)
CIE-LCHlch(38.92, 79.33, 302.19°)
OKLaboklab(49.12% 0.0344 -0.1933)
OKLCHoklch(49.12% 0.196 280.1)
XYZxyz(16.5090, 10.6109, 57.6665)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5247CB #C0CB47
analogous
#477ECB #5247CB #9447CB
triadic
#5247CB #CB5247 #47CB52
tetradic
#5247CB #CB477E #C0CB47 #47CB94
square
#5247CB #CB477E #C0CB47 #47CB94
split-complementary
#5247CB #CB9447 #7ECB47
monochromatic
#282176 #392FA6 #5247CB #7F77D8 #ACA6E6

Accessibility & contrast

On white

6.73
#5247CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5247CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5247CB
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5247CB#FFFFFF#000000##FFFFFF
##5247CB1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CF
Deuteranopia (green-blind)
#0057C8
Tritanopia (blue-blind)
#006983
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5247cb;
/* rgb */ color: rgb(82, 71, 203);
/* oklch */ color: oklch(49.1% 0.196 280.1);
Tailwind
colors: {
  custom: {
    50: '#8f7bdc',
    500: '#5247cb',
    950: '#000000',
  },
}
SCSS
$custom: #5247cb;
$custom-light: #8f7bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#5247cb",
  "rgb": {
    "r": 82,
    "g": 71,
    "b": 203
  },
  "hsl": {
    "h": 245,
    "s": 55.932,
    "l": 53.725
  },
  "oklch": {
    "l": 0.49116,
    "c": 0.19629,
    "h": 280.1
  },
  "luminance": 0.10612
}

Semantic roles & 50–950 ramp

primary
#5247CB
secondary
#CED39B
accent
#DF49D3
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5247CB

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

Preview Lab → · Contrast checker → · Palette generator →

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