#5247EF#5247EF

#5247EF is a mid, highly saturated blue. Relative luminance 0.125; OKLCH L 52.3% C 0.240 H 277.0°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#5247EF
RGBrgb(82, 71, 239)
HSLhsl(244, 84%, 61%)
HSVhsv(244, 70%, 94%)
CMYKcmyk(65.7%, 70.3%, 0%, 6.3%)
CIE-LABlab(42.05, 53.54, -82.57)
CIE-LCHlch(42.05, 98.41, 302.96°)
OKLaboklab(52.33% 0.0294 -0.2385)
OKLCHoklch(52.33% 0.24 277)
XYZxyz(21.3078, 12.5305, 82.9403)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5247EF #E4EF47
analogous
#4790EF #5247EF #A647EF
triadic
#5247EF #EF5247 #47EF52
tetradic
#5247EF #EF4790 #E4EF47 #47EFA6
square
#5247EF #EF4790 #E4EF47 #47EFA6
split-complementary
#5247EF #EFA647 #90EF47
monochromatic
#190FAD #2214E5 #5247EF #877FF4 #BCB8F9

Accessibility & contrast

On white

5.99
#5247EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#5247EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5247EF
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5247EF#FFFFFF#000000##FFFFFF
##5247EF1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AF4
Deuteranopia (green-blind)
#005CEC
Tritanopia (blue-blind)
#007596
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5247ef;
/* rgb */ color: rgb(82, 71, 239);
/* oklch */ color: oklch(52.3% 0.240 277.0);
Tailwind
colors: {
  custom: {
    50: '#957cf6',
    500: '#5247ef',
    950: '#000000',
  },
}
SCSS
$custom: #5247ef;
$custom-light: #957cf6;
$custom-dark: #000000;
JSON
{
  "hex": "#5247ef",
  "rgb": {
    "r": 82,
    "g": 71,
    "b": 239
  },
  "hsl": {
    "h": 243.929,
    "s": 84,
    "l": 60.784
  },
  "oklch": {
    "l": 0.52327,
    "c": 0.24028,
    "h": 277
  },
  "luminance": 0.12532
}

Semantic roles & 50–950 ramp

primary
#5247EF
secondary
#E5E9A9
accent
#E005D2
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5247EF

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

Preview Lab → · Contrast checker → · Palette generator →

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