#5246E1#5246E1

#5246E1 is a mid, highly saturated blue. Relative luminance 0.116; OKLCH L 50.9% C 0.225 H 278.3°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#5246E1
RGBrgb(82, 70, 225)
HSLhsl(245, 72%, 58%)
HSVhsv(245, 69%, 88%)
CMYKcmyk(63.6%, 68.9%, 0%, 11.8%)
CIE-LABlab(40.59, 49.75, -77.04)
CIE-LCHlch(40.59, 91.70, 302.85°)
OKLaboklab(50.9% 0.0323 -0.2223)
OKLCHoklch(50.9% 0.225 278.3)
XYZxyz(19.2561, 11.6088, 72.4455)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5246E1 #D5E146
analogous
#4688E1 #5246E1 #9F46E1
triadic
#5246E1 #E15246 #46E152
tetradic
#5246E1 #E14688 #D5E146 #46E19F
square
#5246E1 #E14688 #D5E146 #46E19F
split-complementary
#5246E1 #E19F46 #88E146
monochromatic
#221895 #2E21C9 #5246E1 #837BEA #B4AFF2

Accessibility & contrast

On white

6.32
#5246E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#5246E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5246E1
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5246E1#FFFFFF#000000##FFFFFF
##5246E11.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E6
Deuteranopia (green-blind)
#0059DE
Tritanopia (blue-blind)
#00708E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5246e1;
/* rgb */ color: rgb(82, 70, 225);
/* oklch */ color: oklch(50.9% 0.225 278.3);
Tailwind
colors: {
  custom: {
    50: '#937bec',
    500: '#5246e1',
    950: '#000000',
  },
}
SCSS
$custom: #5246e1;
$custom-light: #937bec;
$custom-dark: #000000;
JSON
{
  "hex": "#5246e1",
  "rgb": {
    "r": 82,
    "g": 70,
    "b": 225
  },
  "hsl": {
    "h": 244.645,
    "s": 72.093,
    "l": 57.843
  },
  "oklch": {
    "l": 0.509,
    "c": 0.22462,
    "h": 278.3
  },
  "luminance": 0.1161
}

Semantic roles & 50–950 ramp

primary
#5246E1
secondary
#DCE0A2
accent
#EF39E1
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5246E1

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

Preview Lab → · Contrast checker → · Palette generator →

#5246E1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva