#5251EC#5251EC

#5251EC is a mid, highly saturated blue. Relative luminance 0.137; OKLCH L 53.5% C 0.226 H 275.9°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#5251EC
RGBrgb(82, 81, 236)
HSLhsl(240, 80%, 62%)
HSVhsv(240, 66%, 93%)
CMYKcmyk(65.3%, 65.7%, 0%, 7.5%)
CIE-LABlab(43.85, 46.96, -77.93)
CIE-LCHlch(43.85, 90.98, 301.07°)
OKLaboklab(53.54% 0.0231 -0.2249)
OKLCHoklch(53.54% 0.226 275.9)
XYZxyz(21.5575, 13.7330, 80.8553)
Luminance0.1373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5251EC #EBEC51
analogous
#519EEC #5251EC #A051EC
triadic
#5251EC #EC5251 #51EC52
tetradic
#5251EC #EC519E #EBEC51 #51ECA0
square
#5251EC #EC519E #EBEC51 #51ECA0
split-complementary
#5251EC #ECA051 #9EEC51
monochromatic
#1413AF #1B1AE6 #5251EC #8988F2 #C0BFF8

Accessibility & contrast

On white

5.60
#5251EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#5251EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5251EC
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5251EC#FFFFFF#000000##FFFFFF
##5251EC1.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FF1
Deuteranopia (green-blind)
#0061E9
Tritanopia (blue-blind)
#007A98
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5251ec;
/* rgb */ color: rgb(82, 81, 236);
/* oklch */ color: oklch(53.5% 0.226 275.9);
Tailwind
colors: {
  custom: {
    50: '#9483f3',
    500: '#5251ec',
    950: '#000000',
  },
}
SCSS
$custom: #5251ec;
$custom-light: #9483f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5251ec",
  "rgb": {
    "r": 82,
    "g": 81,
    "b": 236
  },
  "hsl": {
    "h": 240.387,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.53542,
    "c": 0.22608,
    "h": 275.9
  },
  "luminance": 0.13735
}

Semantic roles & 50–950 ramp

primary
#5251EC
secondary
#E8E9B0
accent
#DD09DB
background
#FAF8FF
surface
#F3EFFE
border
#CDCAD6
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5251EC

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

Preview Lab → · Contrast checker → · Palette generator →

#5251EC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva