#5254E4#5254E4

#5254E4 is a mid, highly saturated blue. Relative luminance 0.137; OKLCH L 53.3% C 0.213 H 275.8°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#5254E4
RGBrgb(82, 84, 228)
HSLhsl(239, 73%, 61%)
HSVhsv(239, 64%, 89%)
CMYKcmyk(64%, 63.2%, 0%, 10.6%)
CIE-LABlab(43.85, 42.61, -73.40)
CIE-LCHlch(43.85, 84.87, 300.13°)
OKLaboklab(53.34% 0.0216 -0.2116)
OKLCHoklch(53.34% 0.213 275.8)
XYZxyz(20.6490, 13.7342, 74.9465)
Luminance0.1374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5254E4 #E4E252
analogous
#529DE4 #5254E4 #9952E4
triadic
#5254E4 #E45254 #54E452
tetradic
#5254E4 #E4529D #E4E252 #52E499
square
#5254E4 #E4529D #E4E252 #52E499
split-complementary
#5254E4 #E49952 #9DE452
monochromatic
#191BA2 #2224D7 #5254E4 #8788EC #BCBDF5

Accessibility & contrast

On white

5.60
#5254E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#5254E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5254E4
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5254E4#FFFFFF#000000##FFFFFF
##5254E41.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)
#006EE9
Deuteranopia (green-blind)
#0061E1
Tritanopia (blue-blind)
#007994
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5254e4;
/* rgb */ color: rgb(82, 84, 228);
/* oklch */ color: oklch(53.3% 0.213 275.8);
Tailwind
colors: {
  custom: {
    50: '#9284ee',
    500: '#5254e4',
    950: '#000000',
  },
}
SCSS
$custom: #5254e4;
$custom-light: #9284ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5254e4",
  "rgb": {
    "r": 82,
    "g": 84,
    "b": 228
  },
  "hsl": {
    "h": 239.178,
    "s": 73,
    "l": 60.784
  },
  "oklch": {
    "l": 0.5334,
    "c": 0.21271,
    "h": 275.8
  },
  "luminance": 0.13736
}

Semantic roles & 50–950 ramp

primary
#5254E4
secondary
#E5E4AD
accent
#D210D5
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5254E4

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

Preview Lab → · Contrast checker → · Palette generator →

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