#5254E8#5254E8

#5254E8 is a mid, highly saturated blue. Relative luminance 0.140; OKLCH L 53.7% C 0.218 H 275.6°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#5254E8
RGBrgb(82, 84, 232)
HSLhsl(239, 77%, 62%)
HSVhsv(239, 65%, 91%)
CMYKcmyk(64.7%, 63.8%, 0%, 9%)
CIE-LABlab(44.17, 43.91, -75.13)
CIE-LCHlch(44.17, 87.02, 300.30°)
OKLaboklab(53.68% 0.0213 -0.2167)
OKLCHoklch(53.68% 0.218 275.6)
XYZxyz(21.2107, 13.9589, 77.9048)
Luminance0.1396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5254E8 #E8E652
analogous
#529FE8 #5254E8 #9B52E8
triadic
#5254E8 #E85254 #54E852
tetradic
#5254E8 #E8529F #E8E652 #52E89B
square
#5254E8 #E8529F #E8E652 #52E89B
split-complementary
#5254E8 #E89B52 #9FE852
monochromatic
#1618A9 #1E20DF #5254E8 #8889EF #BEBFF6

Accessibility & contrast

On white

5.54
#5254E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#5254E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5254E8
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5254E8#FFFFFF#000000##FFFFFF
##5254E81.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FED
Deuteranopia (green-blind)
#0062E5
Tritanopia (blue-blind)
#007A96
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5254e8;
/* rgb */ color: rgb(82, 84, 232);
/* oklch */ color: oklch(53.7% 0.218 275.6);
Tailwind
colors: {
  custom: {
    50: '#9384f0',
    500: '#5254e8',
    950: '#000000',
  },
}
SCSS
$custom: #5254e8;
$custom-light: #9384f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5254e8",
  "rgb": {
    "r": 82,
    "g": 84,
    "b": 232
  },
  "hsl": {
    "h": 239.2,
    "s": 76.531,
    "l": 61.569
  },
  "oklch": {
    "l": 0.53677,
    "c": 0.21774,
    "h": 275.6
  },
  "luminance": 0.13961
}

Semantic roles & 50–950 ramp

primary
#5254E8
secondary
#E7E6AF
accent
#D60DD9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0B17
muted
#7E7C85

Preview Lab

Preview with #5254E8

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

Preview Lab → · Contrast checker → · Palette generator →

#5254E8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva