#5247BD#5247BD

#5247BD is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.9% C 0.178 H 281.5°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#5247BD
RGBrgb(82, 71, 189)
HSLhsl(246, 47%, 51%)
HSVhsv(246, 62%, 74%)
CMYKcmyk(56.6%, 62.4%, 0%, 25.9%)
CIE-LABlab(37.79, 37.82, -60.80)
CIE-LCHlch(37.79, 71.60, 301.88°)
OKLaboklab(47.95% 0.0356 -0.1747)
OKLCHoklch(47.95% 0.178 281.5)
XYZxyz(14.9154, 9.9735, 49.2734)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5247BD #B2BD47
analogous
#4777BD #5247BD #8D47BD
triadic
#5247BD #BD5247 #47BD52
tetradic
#5247BD #BD4777 #B2BD47 #47BD8D
square
#5247BD #BD4777 #B2BD47 #47BD8D
split-complementary
#5247BD #BD8D47 #77BD47
monochromatic
#2A2465 #3D3492 #5247BD #7C74CD #A7A1DD

Accessibility & contrast

On white

7.01
#5247BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5247BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5247BD
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5247BD#FFFFFF#000000##FFFFFF
##5247BD1.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC1
Deuteranopia (green-blind)
#0055BB
Tritanopia (blue-blind)
#1A647B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5247bd;
/* rgb */ color: rgb(82, 71, 189);
/* oklch */ color: oklch(47.9% 0.178 281.5);
Tailwind
colors: {
  custom: {
    50: '#8d7bd2',
    500: '#5247bd',
    950: '#000000',
  },
}
SCSS
$custom: #5247bd;
$custom-light: #8d7bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5247bd",
  "rgb": {
    "r": 82,
    "g": 71,
    "b": 189
  },
  "hsl": {
    "h": 245.593,
    "s": 47.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.47949,
    "c": 0.17826,
    "h": 281.5
  },
  "luminance": 0.09974
}

Semantic roles & 50–950 ramp

primary
#5247BD
secondary
#C5CA96
accent
#D751CA
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5247BD

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

Preview Lab → · Contrast checker → · Palette generator →

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